|
3 | 3 | [](https://pypi.org/project/vespa-haystack) |
4 | 4 | [](https://pypi.org/project/vespa-haystack) |
5 | 5 |
|
6 | | -- [Changelog](https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/vespa/CHANGELOG.md) |
7 | | - |
| 6 | +- [Integration page](https://haystack.deepset.ai/integrations/vespa) |
8 | 7 | --- |
9 | 8 |
|
10 | | -`vespa-haystack` provides a Haystack `DocumentStore` plus keyword and embedding retrievers for |
11 | | -[Vespa](https://vespa.ai/). |
12 | | - |
13 | | -This integration assumes you already have a Vespa application and schema running. The document store |
14 | | -connects to that existing setup and lets you write documents and query them from Haystack pipelines. |
15 | | - |
16 | | -## Examples |
17 | | - |
18 | | -- [Keyword retrieval example](examples/keyword_retrieval.py) |
19 | | -- [Embedding retrieval example](examples/embedding_retrieval.py) |
20 | | - |
21 | | -## Local Smoke Test |
22 | | - |
23 | | -To verify the integration against a real local Vespa instance, start Docker Desktop and run: |
24 | | - |
25 | | -```bash |
26 | | -hatch run python scripts/local_keyword_smoke_test.py |
27 | | -``` |
28 | | - |
29 | | -This deploys a minimal Vespa application locally, writes three documents, runs a direct filter query, |
30 | | -and checks keyword retrieval through `VespaKeywordRetriever`. |
31 | | - |
32 | | -## Notes |
33 | | - |
34 | | -- Set `VESPA_URL` to your Vespa endpoint before running the examples. |
35 | | -- Make sure your Vespa schema field names match the ones you pass into `VespaDocumentStore`. |
36 | | -- Vespa document IDs are written through the Vespa document path (`data_id`). The optional `id_field` |
37 | | - is only used when a query response also exposes an explicit id field. |
38 | | -- For embedding retrieval, your Vespa schema must already include a tensor field and a ranking profile |
39 | | - compatible with nearest-neighbor search. The example assumes a ranking profile named `semantic`. |
40 | | - |
41 | 9 | ## Contributing |
42 | 10 |
|
43 | 11 | Refer to the general [Contribution Guidelines](https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md). |
| 12 | + |
| 13 | +To run integration tests locally, you need a Docker container running Vespa with the bundled application deployed. |
| 14 | +Use the provided `docker-compose.yml` file to start the container: `docker compose up -d`. |
0 commit comments