Skip to content

Commit

Permalink
Merge pull request #64 from acatav/check-CI-system-tets
Browse files Browse the repository at this point in the history
dummy change to check CI
  • Loading branch information
igiloh-pinecone authored Jan 11, 2024
2 parents ebc5c35 + 31697b5 commit 998b4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ bm25.fit(corpus)

# Encode a new document (for upsert to Pinecone index)
doc_sparse_vector = bm25.encode_documents("The brown fox is quick")
# {"indices": [102, 18, 12, ...], "values": [0.21, 0.38, 0.15, ...]}
# {"indices": [102, 18, 12, ...], "values": [0.22, 0.38, 0.15, ...]}

# Encode a query (for search in Pinecone index)
query_sparse_vector = bm25.encode_queries("Which fox is brown?")
# {"indices": [102, 16, 18, ...], "values": [0.21, 0.11, 0.15, ...]}
# {"indices": [102, 16, 18, ...], "values": [0.22, 0.11, 0.15, ...]}

# store BM25 params as json
bm25.dump("bm25_params.json")
Expand Down

0 comments on commit 998b4dc

Please sign in to comment.