mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 10:58:32 +02:00
Apply suggestions from Copilot code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
d5e84efa4a
commit
f84ac3ef54
+2
-2
@@ -100,7 +100,7 @@ client.upsert(
|
|||||||
points=[
|
points=[
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"vector": [0.9, 0.8, 0.7, 0.6, ...] # New embedding vector
|
"vector": [0.9, 0.8, 0.7, 0.6, ...], # New embedding vector
|
||||||
"payload": {"text": "Example document"}
|
"payload": {"text": "Example document"}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -220,7 +220,7 @@ If your old code looked like this:
|
|||||||
```python
|
```python
|
||||||
results = client.query_points(
|
results = client.query_points(
|
||||||
collection_name="old_collection",
|
collection_name="old_collection",
|
||||||
query=encode_with_old_model("my query"), # Qld query vector
|
query=encode_with_old_model("my query"), # Old query vector
|
||||||
using="my-old-vector", # Old vector name
|
using="my-old-vector", # Old vector name
|
||||||
limit=10,
|
limit=10,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user