Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: RAG support #60

Open
sotwi opened this issue Oct 22, 2024 · 5 comments
Open

[Feat]: RAG support #60

sotwi opened this issue Oct 22, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@sotwi
Copy link

sotwi commented Oct 22, 2024

Description
Add a simple vectorDB rag to enhance memory.

Use Case
It would be possible to retrieve information from outside of the context window

@sotwi sotwi added the enhancement New feature or request label Oct 22, 2024
@sotwi sotwi changed the title [Feat]: [Feat]: RAG support Oct 25, 2024
@EXTREMOPHILARUM
Copy link
Contributor

EXTREMOPHILARUM commented Nov 7, 2024

Do you have any ideas for implementing this? I thought it can maybe something like sqlite with vector embedding addon.

@the-rich-piana
Copy link

the-rich-piana commented Nov 22, 2024

I'm not sure a full-fledged database is necessary. IMO just a JSON object that has values as float vectors.
Not sure how performant it would be, but probably lighter weight. But this probably means no HNSW indexing.

Also it would require the user to install the nomic-embed-text model or some other embed model. But ya happy to collaborate on this.

@EXTREMOPHILARUM
Copy link
Contributor

Hello would love to collaborate. I was looking at vector db approach and found this. The article is for javascript and transformers.js but I believe it can be done in a similar manner with react native and llama.rn . llama.rn does have an embeddings function. We can connect over a call to discuss further.

@the-rich-piana
Copy link

Sure thing. Those both seem like good options.

@bi4key
Copy link

bi4key commented Dec 9, 2024

You can try this method:
Vali-98/ChatterUI#41 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants