You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QuestionAnswerAdvisor only inserts the contents of the Documents into the prompt. It would be helpful to be able to include the document id and metadata.
When inserting Documents into a PromptTemplate, the object's .toString() method is automatically, used which includes the id and metadata.
It is frequently useful to include the Document id as well as the Document metadata in the prompt so the LLM can use that information. So, it would be helpful if there were a way to tell QAA to include that information.
For the time-being, I'm using a simple hack to make it happen:
The default ContextualQueryAugmenter will soon support customising the context with document IDs and metadata, so that it's not necessary to implement an entirely new QueryAugmenter. I'll comment down here when that's delivered.
QuestionAnswerAdvisor only inserts the contents of the Documents into the prompt. It would be helpful to be able to include the document id and metadata.
When inserting Documents into a PromptTemplate, the object's
.toString()
method is automatically, used which includes the id and metadata.However, with QuestionAnswerAdvisor, it's only possible to include the content:
It is frequently useful to include the Document id as well as the Document metadata in the prompt so the LLM can use that information. So, it would be helpful if there were a way to tell QAA to include that information.
For the time-being, I'm using a simple hack to make it happen:
The text was updated successfully, but these errors were encountered: