Dynamically Adding Document Number in create_stuff_documents_chain #29027
Unanswered
wo-yashsinghvi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
I'm using
create_stuff_documents_chain
and passing metadata like Name, Page Number, and Content through adocument_prompt
. Here's an example:But I also want to dynamically include the document number (e.g., Document 1, Document 2). How can I do this while keeping the code clean and reusable?
Any tips or examples would be greatly appreciated! 🙌
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions