Find answers from the community

Updated 4 months ago

the same query in 0 4x cant get anything

At a glance
the same query in 0.4x cant get anything in 0.5x , (I have re-index my index file ) just wondering, if there is any default value changed will affect the query ? (the index is in simpleVector, and I create the index and make query use default parameter)
documents = SimpleDirectoryReader(input_files=["./less_page.pdf"]).load_data() #if no index, create one #index = GPTSimpleVectorIndex.from_documents(documents) openai.api_key = os.getenv("OPENAI_API_KEY") index = GPTSimpleVectorIndex.load_from_disk("less_page.json") response = index.query("who is Amanda Rajkumar?") print(response)
L
1 comment
So if you install 0.4.x today, it works?

If you are relying on past experiences, however, the openAI models get updated every once and a while, so performance is not static 😦

For vector indexes, I usually go with a lower lower chunk_size_limit (like 1024 or 512), and then use index.query(..., similarity_top_k=3, response_mode="compact")
Add a reply
Sign up and join the conversation on Discord