-
Hi, so I have the following chain already defined an working - it simply pulls the index from a document so a prompt and data but nothing else.
The above works OK but I need this to work for large files so I RAG... Having chunked my inbound file and built a
This doesn't work... I get a long traceback that's not very useful.. But what I really need is a little guidance.. is this a valid approach? Where am I going awry? thx The exception detail if it helps...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Apparently I just needed to sleep on this.. >.< I'll detail this for others below: There's a couple of things going on here but mainly I just needed to reframe things This was the underlying problem - no question supplied. Even though the prompt has all the info (including the question!) a question is still required to pass through the chain. Personally I think this is.. odd.
Therefore the solution here was to supply a question and rework the prompt templates to accommodate that change. After that it worked just fine. |
Beta Was this translation helpful? Give feedback.
Apparently I just needed to sleep on this.. >.< I'll detail this for others below:
There's a couple of things going on here but mainly I just needed to reframe things
This was the underlying problem - no question supplied. Even though the prompt has all the info (including the question!) a question is still required to pass through the chain. Personally I think this is.. odd.
Therefore the solution here was to supply a question and rework the prompt templates to accommodate that change. After that it worked just fine.