Code Monkey home page Code Monkey logo

memorybot's Introduction

Hi there, I'm Gordon ๐Ÿ‘‹

Twitter Follow Mastodon Follow

Hello there! My name is Gordon and Iโ€™m a father and a software engineer with a focus on full stack web development. Iโ€™m a Tech Lead @ Cistec AG, the owner of Mickel Tech, the Co-Founder at DocIQ and a technical advisor for various other projects. Lately, Iโ€™ve been particularly passionate about building with and on-top of LLMs (Large Language Models). Feel free to connect with me on Twitter to learn more about my work and interests!

  • ๐ŸŒฑ Iโ€™m currently learning everything ๐Ÿคฃ
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate with other content creators
  • ๐Ÿฅ… 2024 Goals: Dive further into Deep Learning

๐Ÿค Connect with me:

Medium Substack LinkedIn


  • ๐Ÿ’ฌ If you have any question/feedback, please do not hesitate to reach out to me on Twitter!



Languages and Tools:

JavaScript Python Rust TypeScript VS Code Insiders Vue.js Vite TailwindCSS React NodeJS Nuxtjs Postgres Redis PyTorch Obsidian





๐Ÿ“• Latest Blog Posts

โžก๏ธ more blog posts (on Medium)...
โžก๏ธ more blog posts (on Substack)...



Buy Me a Coffee โ˜•

If you found my work helpful or just want to support me, you can buy me a coffee! Any contribution is greatly appreciated and will go towards funding my various projects, including covering my exorbitant OpenAI API bill (just kidding, but those models can be expensive!). Your support will help me continue creating useful content and building exciting new things. Thank you in advance for your generosity! To buy me a coffee, you can click here or use the button below.

Ko-Fi




GitHub Stats

GitHub Stats

GitHub Language Stats

memorybot's People

Contributors

gmickel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

memorybot's Issues

Azure OpenAI

Can you make the script with Azure OpenAI ChatGPT?

Add Context tagging and filtering

  • When adding documents to the context, allow the user to specify a key that is then inserted into the metadata object of the index.
  • Allow the user to switch between different contexts using the key

Can not build and run from source

Followed the steps in the README

git clone [email protected]:gmickel/memorybot.git
cd memorybot
npm install

Copied .env.example to .env and added my API

npm start


[jdekka@RL src]$ npm start

> [email protected] start
> npm run build && node -r dotenv/config dist/index.js


> [email protected] build
> tsc --declaration --outDir dist/

node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module '/home/jdekka/memorybot/dist/index.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.15.0

Can't delete db folder

Great work! But I have an issue where when I try to start afresh by removing the db folder I get the below error. Same error occurs when I try to point to a new folder in the .env file. The only way I've been able to start again is to delete and re-install the whole repository

(memorybot) lp9@lp-mbp-8401 memorybot % npm start

[email protected] start
npm run build && node -r dotenv/config dist/index.js

[email protected] build
tsc --declaration --outDir dist/

โ ‹ Creating new Context Vector Store in the /Users/lp9/memorybot/db directoryfile:///Users/lp9/memorybot/dist/lib/contextManager.js:66
throw new Error(Unsupported file extension: ${fileExtension});
^

Error: Unsupported file extension:
at loadAndSplitFile (file:///Users/lp9/memorybot/dist/lib/contextManager.js:66:19)
at file:///Users/lp9memorybot/dist/lib/contextManager.js:89:74
at Array.map ()
at loadOrCreateVectorStore (file:///Users/lp9/memorybot/dist/lib/contextManager.js:89:56)
at async file:///Users/lp9/memorybot/dist/lib/contextManager.js:97:28

Node.js v18.15.0

on a mac M1

Using a local model?

How would I go about integrating a locally hosted model into this code? I have a GGUF bin file, but I am unsure of what to change in the typescript file...

Streaming issue

I have noticed that when using chain.call() the full answer is sent instead of being streamed.
So looking at the console, the output is correctly streamed by CallbackManager, but in the end if the output had to be written somewhere else, only the full answer would be delivered.
Am I right or did I miss something ?
Is it possible to have a streaming with chain.call ?

How can I add recording and transcribe my voice with Whisper AI and TTS with the answering from chatbot.

Hi Dev and community,
First of all, I'm sorry to post it here, it's not really an issue with the code. But I wanna ask how I can record and transcribe my voice with Whisper AI and TTS with the answering from a chatbot later. I'm new to code, and I think that much easier to do it with Python code (because a lot of guidance with Python), but I have no idea how to do the same thing with Typescripts. I just need to give some ideas. Which files should I modify, or create, and do any recommendations for the library on Github to build it? Thank you so much. I'd appreciate it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.