Augment the prompt with documentation #313
-
If I insert a document into the DB vector, can the prompt also be augmented with a sub-portion of the document (e.g., only two rows are extracted from the document) or will the entire document always be used? Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I dont really know this myself. AFAIK, the entire documentation is used in the context if during training you feed the entire documentation as a single string. Perhaps you should chunk it yourself and train vanna on separate chunks. In this case, Vanna should only use a subset of the documentations (sub-portion), similar to question-sql pairs. Is this correct, @zainhoda? I think we ran into the exact same issue right now. |
Beta Was this translation helpful? Give feedback.
I dont really know this myself. AFAIK, the entire documentation is used in the context if during training you feed the entire documentation as a single string. Perhaps you should chunk it yourself and train vanna on separate chunks. In this case, Vanna should only use a subset of the documentations (sub-portion), similar to question-sql pairs. Is this correct, @zainhoda? I think we ran into the exact same issue right now.