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

Introduce RAG for personalization and history #7

Closed
MrCsabaToth opened this issue Jul 14, 2024 · 4 comments
Closed

Introduce RAG for personalization and history #7

MrCsabaToth opened this issue Jul 14, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request RAG Retrieval Augmented Generation related

Comments

@MrCsabaToth
Copy link
Member

This needs to work together with function calls and ReAct #5 / ReWOO #6

@MrCsabaToth MrCsabaToth added the enhancement New feature or request label Jul 14, 2024
@MrCsabaToth
Copy link
Member Author

Since objectbox (https://pub.dev/packages/objectbox) supports vector DB as well, it'd cover both history (#8) and RAG

@MrCsabaToth MrCsabaToth self-assigned this Jul 20, 2024
@MrCsabaToth
Copy link
Member Author

Note, once the basic RAG is in place, explore:

  • different embeddings
  • hybrid-search (applicable?)
  • auto-cut (crop documents when the score suddenly drops)
  • re-rank (applicable?)

@MrCsabaToth
Copy link
Member Author

https://ai.google.dev/gemini-api/docs/embeddings#dart-flutter

final model = GenerativeModel(model: 'text-embedding-004', apiKey: apiKey);
final content = Content.text('The quick brown fox jumps over the lazy dog.');
final result = await model.embedContent(content);
print(result.embedding.values);

dimensionality is 768

MrCsabaToth added a commit that referenced this issue Aug 9, 2024
MrCsabaToth added a commit that referenced this issue Aug 9, 2024
(vs. the system which is the model's initial system instruction)
MrCsabaToth added a commit that referenced this issue Aug 10, 2024
@MrCsabaToth
Copy link
Member Author

We introduced thresholds as well now.

@MrCsabaToth MrCsabaToth added the RAG Retrieval Augmented Generation related label Aug 21, 2024
MrCsabaToth added a commit that referenced this issue Sep 4, 2024
…watermark history retrieval #45 align translation and resolver prompts for all this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request RAG Retrieval Augmented Generation related
Projects
None yet
Development

No branches or pull requests

1 participant