You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ DocArray is a Python library expertly crafted for the [representation](#represen
22
22
23
23
-:fire: Offers native support for **[NumPy](https://github.com/numpy/numpy)**, **[PyTorch](https://github.com/pytorch/pytorch)**, **[TensorFlow](https://github.com/tensorflow/tensorflow)**, and **[JAX](https://github.com/google/jax)**, catering specifically to **model training scenarios**.
24
24
-:zap: Based on **[Pydantic](https://github.com/pydantic/pydantic)**, and instantly compatible with web and microservice frameworks like **[FastAPI](https://github.com/tiangolo/fastapi/)** and **[Jina](https://github.com/jina-ai/jina/)**.
25
-
-:package: Provides support for vector databases such as **[Weaviate](https://weaviate.io/), [Qdrant](https://qdrant.tech/), [ElasticSearch](https://www.elastic.co/de/elasticsearch/), [Redis](https://redis.io/)**, and **[HNSWLib](https://github.com/nmslib/hnswlib)**.
25
+
-:package: Provides support for vector databases such as **[Weaviate](https://weaviate.io/), [Qdrant](https://qdrant.tech/), [ElasticSearch](https://www.elastic.co/de/elasticsearch/), **[Redis](https://redis.io/)**, **[Mongo Atlas](https://www.mongodb.com/)**, and **[HNSWLib](https://github.com/nmslib/hnswlib)**.
26
26
-:chains: Allows data transmission as JSON over **HTTP** or as **[Protobuf](https://protobuf.dev/)** over **[gRPC](https://grpc.io/)**.
27
27
28
28
## Installation
@@ -350,7 +350,7 @@ This is useful for:
350
350
-:mag:**Neural search** applications
351
351
-:bulb:**Recommender systems**
352
352
353
-
Currently, Document Indexes support **[Weaviate](https://weaviate.io/)**, **[Qdrant](https://qdrant.tech/)**, **[ElasticSearch](https://www.elastic.co/)**, **[Redis](https://redis.io/)**, and **[HNSWLib](https://github.com/nmslib/hnswlib)**, with more to come!
353
+
Currently, Document Indexes support **[Weaviate](https://weaviate.io/)**, **[Qdrant](https://qdrant.tech/)**, **[ElasticSearch](https://www.elastic.co/)**, **[Redis](https://redis.io/)**, **[Mongo Atlas](https://www.mongodb.com/)**, and **[HNSWLib](https://github.com/nmslib/hnswlib)**, with more to come!
354
354
355
355
The Document Index interface lets you index and retrieve Documents from multiple vector databases, all with the same user interface.
356
356
@@ -421,7 +421,7 @@ They are now called **Document Indexes** and offer the following improvements (s
421
421
-**Production-ready:** The new Document Indexes are a much thinner wrapper around the various vector DB libraries, making them more robust and easier to maintain
422
422
-**Increased flexibility:** We strive to support any configuration or setting that you could perform through the DB's first-party client
423
423
424
-
For now, Document Indexes support **[Weaviate](https://weaviate.io/)**, **[Qdrant](https://qdrant.tech/)**, **[ElasticSearch](https://www.elastic.co/)**, **[Redis](https://redis.io/)**, Exact Nearest Neighbour search and **[HNSWLib](https://github.com/nmslib/hnswlib)**, with more to come.
424
+
For now, Document Indexes support **[Weaviate](https://weaviate.io/)**, **[Qdrant](https://qdrant.tech/)**, **[ElasticSearch](https://www.elastic.co/)**, **[Redis](https://redis.io/)**, **[Mongo Atlas](https://www.mongodb.com/)**, Exact Nearest Neighbour search and **[HNSWLib](https://github.com/nmslib/hnswlib)**, with more to come.
425
425
426
426
</details>
427
427
@@ -844,6 +844,7 @@ Currently, DocArray supports the following vector databases:
844
844
-[Milvus](https://milvus.io)
845
845
- ExactNNMemorySearch as a local alternative with exact kNN search.
846
846
-[HNSWlib](https://github.com/nmslib/hnswlib) as a local-first ANN alternative
847
+
-[Mongo Atlas](https://www.mongodb.com/)
847
848
848
849
An integration of [OpenSearch](https://opensearch.org/) is currently in progress.
849
850
@@ -874,6 +875,7 @@ from langchain.embeddings.openai import OpenAIEmbeddings
874
875
875
876
embeddings = OpenAIEmbeddings()
876
877
878
+
877
879
# Define a document schema
878
880
classMovieDoc(BaseDoc):
879
881
title: str
@@ -903,6 +905,7 @@ from docarray.index import (
903
905
QdrantDocumentIndex,
904
906
ElasticDocIndex,
905
907
RedisDocumentIndex,
908
+
MongoDBAtlasDocumentIndex,
906
909
)
907
910
908
911
# Select a suitable backend and initialize it with data
0 commit comments