Find answers from the community

T
Tush
Offline, last seen 2 days ago
Joined November 27, 2024
T
Tush
·

Bm25

I keep getting error for this :

bm25_retriever = BM25Retriever.from_defaults(nodes=text_nodes, similarity_top_k=2)

error:
~llama_index/retrievers/bm25/base.py", line 119, in from_defaults
raise ValueError("Please pass exactly one of index, nodes, or docstore.")
ValueError: Please pass exactly one of index, nodes, or docstore.

Even tho I am passing the textnodes
3 comments
L
T
T
Tush
·

Bm25

I want to built bm25 retriever and store it in postgress database. is that possible ?
2 comments
L
T