Skip to content

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 <saba.sturua@jina.ai>
@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.

3 participants