Skip to content

Commit

Permalink
Update README for external retrievers (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
willtai authored Jan 16, 2025
1 parent 308340d commit 68cba61
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions examples/customize/retrievers/external/pinecone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You will need both a Pinecone vector database and a Neo4j database to use this r
Update `NEO4J_AUTH`, `NEO4J_URL`, and `PC_API_KEY` variables in the `tests/e2e/pinecone_e2e/populate_dbs.py` script then run this from the project root to write test data to both dbs.

```
poetry run python tests/e2e/pinecone_e2e/populate_dbs.py
poetry run python -m tests/e2e/pinecone_e2e/populate_dbs.py
```

### Install Pinecone client
Expand All @@ -23,8 +23,8 @@ Update the `NEO4J_AUTH`, `NEO4J_URL`, and `PC_API_KEY` variables in each file th

```
# Search by vector
poetry run python -m examples.pinecone.vector_search
poetry run python -m examples.customize.retrievers.external.pinecone.vector_search
# Search by text, with embeddings generated locally
poetry run python -m examples.pinecone.text_search
poetry run python -m examples.customize.retrievers.external.pinecone.text_search
```
6 changes: 3 additions & 3 deletions examples/customize/retrievers/external/qdrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker compose -f tests/e2e/docker-compose.yml up
Run this from the project root to write data to both Neo4J and Qdrant.

```bash
poetry run python tests/e2e/qdrant_e2e/populate_dbs.py
poetry run python -m tests/e2e/qdrant_e2e/populate_dbs.py
```

### Install Qdrant client
Expand All @@ -24,8 +24,8 @@ pip install qdrant-client

```bash
# search by vector
poetry run python -m examples.qdrant.vector_search
poetry run python -m examples.customize.retrievers.external.qdrant.vector_search

# search by text, with embeddings generated locally
poetry run python -m examples.qdrant.text_search
poetry run python -m examples.customize.retrievers.external.qdrant.text_search
```
8 changes: 4 additions & 4 deletions examples/customize/retrievers/external/weaviate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker compose -f tests/e2e/docker-compose.yml up
Run this from the project root to write data to both dbs.

```
poetry run python tests/e2e/weaviate_e2e/populate_dbs.py
poetry run python -m tests/e2e/weaviate_e2e/populate_dbs.py
```

### Install Weaviate client
Expand All @@ -28,11 +28,11 @@ pip install weaviate-client

```
# search by vector
poetry run python -m examples.weaviate.vector_search
poetry run python -m examples.customize.retrievers.external.weaviate.vector_search
# search by text, with embeddings generated locally (via embedder argument)
poetry run python -m examples.weaviate.text_search_local_embedder
poetry run python -m examples.customize.retrievers.external.weaviate.text_search_local_embedder
# search by text, with embeddings generated on the Weaviate side, via configured vectorizer
poetry run python -m examples.weaviate.text_search_remote_embedder
poetry run python -m examples.customize.retrievers.external.weaviate.text_search_remote_embedder
```

0 comments on commit 68cba61

Please sign in to comment.