Hi all, I am looking for multiples query results based on similarity score?
For example.
from llama_index import VectorStoreIndex, SimpleDirectoryReader
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What did the author do growing up?")
print(response)
In this code, I want to get a multiple query response result with some score numbers.
| Score | Query result |
|-------|--------------|
| 0.9 |he worked. |
| 0.6 |he played. |
| 0.3 |he slept. |
What is the best way to achive my goal?
Thanks for your advice.
π