Find answers from the community

Updated 4 months ago

What is the best way to tell the index

At a glance

The community member is having trouble with an index that provides definitions of specific articles within texts, but the definitions are not relevant to the requested article. A comment suggests the community member might be interested in using a keyword index or a combination of a keyword index and vector index, and provides a link to an example of a retriever query engine with custom retrievers. However, there is no explicitly marked answer in the comments.

Useful resources
What is the best way to tell the index to bring me specific definitions and cited in the documents with which it was trained. I am having problems when it tells me definitions of specific articles within the texts, for example: tell me what article 19 says and it brings me a totally different article.
L
1 comment
Specific terms can be tricky. You might be interested in a keyword index, or even a combination of a keyword index and vector index

https://gpt-index.readthedocs.io/en/latest/examples/query_engine/CustomRetrievers.html#retriever-query-engine-with-custom-retrievers-simple-hybrid-search
Add a reply
Sign up and join the conversation on Discord