Hey llama gang. I noticed something very strange today. I was using a ComposableGraph to query against a set of docs generated from a BeautifulSoupWebReader data loader. Now mind you previously (like two days ago) i was getting beautiful results. Now my results are seriously dumbed down. I cant fathom why this is. The docs have not changed. I tried playing with my versions of langchan and llama to no luck. Im going to leave an example here of the same questions asked a few days apart. Note the bottom result is the "dumber" version. Also some code snippets.
index1 = GPTSimpleVectorIndex.from_documents(documents);
graph = ComposableGraph.from_indices(GPTListIndex, [index1], index_summaries=[index1_summary])
example of query:
query_configs = [
{
"index_struct_type": "tree",
"query_mode": "embedding",
"query_kwargs": {
"child_branch_factor": 5
}
}
]
response = graph.query("Provide a detailed answer the following quesiton based on the context. Never use the word context. If you dont know say i dont know. What is a Filecoin storage provider?", query_configs=query_configs)
print(response)