Any ways I can embed a directory hierarchy structure as well as the text? Or any way I can prompt a retriever? #4771
djsteve1223
started this conversation in
General
Replies: 1 comment
-
@dosu-bot could you answer this question? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm currently trying to create a chatbot over documents that are stored in a tree-like hierarchy structure.
I've tried to search over vector databases that takes the directory structure into account as well as the text is self, but I couldn't find any. Is there any way to do so?
I'm currently using chroma and saved the persist directory on my local workspace.
I have a couple of questions.
After observing the above problem, I've tried to bypass the problem by wrapping the original query with relevant information about the hierarchy structure. I've created a new prompt template that explains the file structure and passed the whole prompt into the retriver. However, the retriever doesn't take the prompt as a "guide", but the prompt itself as a whole "question". Thus, the most relevant answer that the LLM found was the document that contained names of all categories mentiioned below.
Any suggestions, comments would be helpful.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions