참고소스 수정본

This commit is contained in:
LASTA_DEV01\lasta
2026-05-12 19:40:31 +09:00
parent 0f34a451fc
commit 2e9204243d
8708 changed files with 3259488 additions and 869 deletions

View File

@@ -0,0 +1,38 @@
### Start services locally
This is a manual task you need to do in the terminal.
This spins up Neo4j and Weaviate containers and is configuring Weaviate to use embeddings from Hugging Face's Sentence Transformers using the "all-MiniLM-L6-v2" model, which has 384 dimensions.
```bash
docker compose -f tests/e2e/docker-compose.yml up
```
### Write data (once)
Run this from the project root to write data to both dbs.
```
uv run python -m tests/e2e/weaviate_e2e/populate_dbs.py
```
### Install Weaviate client
You need to install the `weaviate-client` package to use this retriever.
```bash
pip install weaviate-client
```
### Search
```
# search by vector
uv run python -m examples.customize.retrievers.external.weaviate.vector_search
# search by text, with embeddings generated locally (via embedder argument)
uv 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
uv run python -m examples.customize.retrievers.external.weaviate.text_search_remote_embedder
```