Open liamkavfc opened 6 days ago
How do you know it's 2 files? What are you checking to confirm this?
In the response I am looking at source nodes. I'll attach some screenshots
And here are the files in my index:
The default top k is 2, so source nodes will always be the top 2 nodes retrieved from your index.
This is why it changes, and why it's always 2
You can increase the top k, like index.as_query_engine(similarity_top_k=3)
Ah makes sense, thank you, I will try that!
Question Validation
Question
I have an index which is built from 10 cvs I have in my data directory
But when I query, it only has 2 files indexed and its not always the same 2 files, can be 2 different files each time.
Here is my code: `def construct_index(directory_path): max_input_size = 4096 num_outputs = 512 max_chunk_overlap = 1.0 chunk_size_limit = 600