Skip to content

docs: qdrant in memory usage#1634

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

docs: qdrant in memory usage#1634
JoanFM merged 1 commit intomainfrom
fix-qdrant-in-memory

Conversation

@jupyterjazz
Copy link
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 <[email protected]>
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

📝 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 join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants