mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 16:38:31 +02:00
Add TypeScript examples for Documentation & Quickstart (#376)
* Add TS examples for Documentation/Concepts * Minor FAQ improvements: spelling & formatting (#318) * Minor spelling and formatting improvements in FAQ * Add unused RAM is wasted RAM quote, improve memory text * Add TypeScript version of Quickstart (#378) * Minor FAQ improvements: spelling & formatting (#318) * Minor spelling and formatting improvements in FAQ * Add unused RAM is wasted RAM quote, improve memory text * Add TS version of quickstart --------- Co-authored-by: Tim Visée <tim@visee.me> * Add TS examples to Documentation / Guides * Fix terminology * Add TS examples to Documentation / Cloud * Add TS version of bulk upload tutorial * Format tutorials with black * Move author data to [params.author] (#385) * Add TS examples for Documentation/Concepts * Add TypeScript version of Quickstart (#378) * Minor FAQ improvements: spelling & formatting (#318) * Minor spelling and formatting improvements in FAQ * Add unused RAM is wasted RAM quote, improve memory text * Add TS version of quickstart --------- Co-authored-by: Tim Visée <tim@visee.me> * Add TS examples to Documentation / Guides * Fix terminology * Add TS examples to Documentation / Cloud * Add TS version of bulk upload tutorial * Format tutorials with black --------- Co-authored-by: Tim Visée <tim@visee.me>
This commit is contained in:
co-authored by
Tim Visée
parent
c79061a2ef
commit
a389d78bd2
@@ -92,12 +92,10 @@ client.recreate_collection(
|
||||
collection_name=collection_name,
|
||||
vectors_config={
|
||||
"image": models.VectorParams(
|
||||
size=image_embeddings.shape[1],
|
||||
distance=models.Distance.COSINE
|
||||
size=image_embeddings.shape[1], distance=models.Distance.COSINE
|
||||
),
|
||||
"text": models.VectorParams(
|
||||
size=text_embeddings.shape[1],
|
||||
distance=models.Distance.COSINE
|
||||
size=text_embeddings.shape[1], distance=models.Distance.COSINE
|
||||
),
|
||||
},
|
||||
)
|
||||
@@ -136,7 +134,6 @@ As a response, we should see a similar output:
|
||||
|
||||
```python
|
||||
name='LAION-5B-1217055918586176-2023-07-04-11-51-24.snapshot' creation_time='2023-07-04T11:51:25' size=74202112
|
||||
|
||||
```
|
||||
|
||||
## List all snapshots
|
||||
@@ -150,7 +147,13 @@ print(snapshots)
|
||||
This endpoint exposes all the snapshots in the same format as before:
|
||||
|
||||
```python
|
||||
[SnapshotDescription(name='LAION-5B-1217055918586176-2023-07-04-11-51-24.snapshot', creation_time='2023-07-04T11:51:25', size=74202112)]
|
||||
[
|
||||
SnapshotDescription(
|
||||
name="LAION-5B-1217055918586176-2023-07-04-11-51-24.snapshot",
|
||||
creation_time="2023-07-04T11:51:25",
|
||||
size=74202112,
|
||||
)
|
||||
]
|
||||
```
|
||||
|
||||
We can use the same naming convention to create the URL to download it.
|
||||
|
||||
Reference in New Issue
Block a user