Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

docs: qdrant in memory usage - #1634

Merged
JoanFM merged 1 commit into
mainfrom
fix-qdrant-in-memory
Jun 9, 2023
Merged

JoanFM merged 1 commit into
mainfrom
fix-qdrant-in-memory

Conversation

@jupyterjazz

Copy link
Copy Markdown
Contributor
from typing import Optional

from docarray import BaseDoc
from docarray.index import QdrantDocumentIndex
from docarray.typing import NdArray

class MyDocument(BaseDoc):
    title: str
    title_embedding: NdArray[786]
    image_path: Optional[str]
    image_embedding: NdArray[512]


# Creating an in-memory Qdrant document index
qdrant_config = QdrantDocumentIndex.DBConfig(":memory:")
doc_index = QdrantDocumentIndex[MyDocument](qdrant_config)

This snippet from our docs doesn't work, ":memory:" gets assigned to index_name instead of location.

Signed-off-by: jupyterjazz <saba.sturua@jina.ai>
@github-actions

github-actions Bot commented Jun 9, 2023

Copy link
Copy Markdown

📝 Docs are deployed on https://ft-fix-qdrant-in-memory--jina-docs.netlify.app 🎉

@JoanFM JoanFM changed the title fix: qdrant in memory usage docs:: qdrant in memory usage Jun 9, 2023
@JoanFM JoanFM changed the title docs:: qdrant in memory usage docs: qdrant in memory usage Jun 9, 2023
@JoanFM
JoanFM merged commit eedd83c into main Jun 9, 2023
@JoanFM
JoanFM deleted the fix-qdrant-in-memory branch June 9, 2023 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants