Hello
i'm trying to use the pack called
HybridFusionRetrieverPack
but i'm getting this error
RuntimeError: asyncio.run() cannot be called from a running event loop
Did someone succeeded at making it work ? Bellow is a small piece of code to reproduce the error.
from llama_index import SimpleDirectoryReader
from llama_index.node_parser import SimpleNodeParser
# load in some sample data
reader = SimpleDirectoryReader(input_files=["paul_graham_essay.txt"])
documents = reader.load_data()
# parse nodes
node_parser = SimpleNodeParser.from_defaults()
nodes_test = node_parser.get_nodes_from_documents(documents)
hybrid_fusion_pack_test = HybridFusionRetrieverPack(
nodes, chunk_size=256, vector_similarity_top_k=2, bm25_similarity_top_k=2
)
response = hybrid_fusion_pack.run("What did the author do during his time in YC?")
--> RuntimeError: asyncio.run() cannot be called from a running event loop
Thank you π