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

Add metadata to chunks #16

Open
charlesfrye opened this issue May 22, 2023 · 1 comment
Open

Add metadata to chunks #16

charlesfrye opened this issue May 22, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request prompt

Comments

@charlesfrye
Copy link
Collaborator

Chunks should include contextual info at the top, like the document and section title, when they're presented to the LM.

This can be stored as metadata and inserted at prompt construction time.

@charlesfrye
Copy link
Collaborator Author

hmm, this is harder than it should be in langchain -- prompt templates seem to be pretty literal

may need to check out jinja2 format

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

No branches or pull requests

1 participant