Find answers from the community

Updated 2 months ago

Two indexes

Guys, one question:

I have 2 database, like first for documents (a lot of documents) and second for tickets (a lot of tickets). My idea is create 2 indexes for each one and I need somehow combine them to be able ask questions in one single place. I have looked to ListIndex, but I think it is not that I need.

So, question about:)

sorry for mention you, but you always give me advices which instantly works)))
L
k
8 comments
Hmm. My initial idea is to create each index separately, and use each as a custom tool within langchain

Without langchain, you might be able to create a graph with the two indexes, but that's not as straightforward πŸ€”
But graph and list always list to have a summary:)))

There is a main problem))
My index contains about 30 k docs)
@Logan M I'm not sure how to do that.

Langchain allow us to create several indexes?
@korzhov_dm yea with langchain, each index becomes a tool. You give it an appropriate description and the LLM will decide which tools/indexes to use

One sec, I'll link some tutorials/examples
For me personally, llama much betters and user friendly ))) At least with documentation)) @Logan M
Here's a formal tutorial, that uses some wrappers from llama index to help make the experience a little easier https://gpt-index.readthedocs.io/en/latest/guides/tutorials/building_a_chatbot.html

And here's how you would do it "raw" lol without the wrappers. Maybe a bit more simple in my opinion

https://github.com/jerryjliu/llama_index/blob/main/examples/langchain_demo/LangchainDemo.ipynb

I know langchain is another library to learn, but the pattern of using indexes as tools is extremely powerful πŸ™
wow! Thank you SOO much!!
Add a reply
Sign up and join the conversation on Discord