Skip to content

Commit

Permalink
docs: Describe how to change the model and how to just create embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
KShivendu authored Feb 5, 2024
1 parent d3f5f29 commit 4b1ffb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,21 @@ metadata = [
]
ids = [42, 2]

# If you want to change the default model:
# client.set_model("sentence-transformers/all-MiniLM-L6-v2")
# List of supported models: https://qdrant.github.io/fastembed/examples/Supported_Models

# Use the new add method
client.add(
collection_name="demo_collection",
documents=docs,
metadata=metadata,
ids=ids
)
# If you just want the embeddings:
# from fastembed.embedding import TextEmbedding
# model = TextEmbedding()
# embeddings = model.embed(docs, batch_size=32)

search_result = client.query(
collection_name="demo_collection",
Expand Down

0 comments on commit 4b1ffb4

Please sign in to comment.