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

Employing Small-to-Big Retrieval #58

Open
MrCsabaToth opened this issue Oct 20, 2024 · 1 comment
Open

Employing Small-to-Big Retrieval #58

MrCsabaToth opened this issue Oct 20, 2024 · 1 comment
Labels
enhancement New feature or request RAG Retrieval Augmented Generation related

Comments

@MrCsabaToth
Copy link
Member

After matching specific entries in history, we should expand the stuffed blocks with some more entries along the matched entry. For example if the entry contained multiple function call turns or additional media attachments go through that and include a few more steps back and forward in the history.

@MrCsabaToth MrCsabaToth added enhancement New feature or request RAG Retrieval Augmented Generation related labels Oct 20, 2024
@MrCsabaToth
Copy link
Member Author

Since in our case it's not about chunks, we could go with this simple heuristic first:

  1. If the retrieval matches on a user utterance, we should look further in history (skipping any medium entries and optionally include any function call entries) and add at least the model response to that user input.
  2. If the retrieval matches on a model response, we should look back in history (skipping any medium entries and optionally include any function call entries) and add at least the user request triggering the model response.

Maybe later we can think about adding even more rounds.

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