|
1 | 1 | # Prerequisites
|
2 | 2 |
|
3 |
| - |
| 3 | +- Clone this repo and navigate to this directory. |
4 | 4 | - You need a python virtual environment. For this demo, `Python 3.13.1` was used, but any Python environment 3.11+ should work.
|
5 | 5 | - You will need [Vespa CLI](https://docs.vespa.ai/en/vespa-cli.html) that you can deploy on MacOS with `brew install vespa-cli`
|
6 | 6 | - Libraries dependencies can be installed with: `pip install -R requirements.txt`
|
7 | 7 | - Sign-up with [Tavily](https://tavily.com/) and Get an API key.
|
8 | 8 | - Spin-up a Vespa Cloud [Trial](https://vespa.ai/free-trial) account:
|
9 | 9 | - Login to the account you just created and create a tenant at [console.vespa-cloud.com](https://console.vespa-cloud.com/).
|
10 | 10 | - Save the tenant name.
|
11 |
| -- A Valid OpenAI API key. Note that you have the option to use any other LLM, which may support Langgraph tools binding. |
12 |
| -- Git clone the repo `https://github.com/vespa-engine/system-test.git` |
13 |
| -- The ecommerce_hybrid_search app will be deployed. For more information about the app, please review the [README.md](https://github.com/vespa-engine/system-test/blob/master/tests/performance/ecommerce_hybrid_search/dataprep/README.md). You do not have to follow the data prep steps there. Follow the instructions below instead. |
14 |
| -- Uncompress the data file: `zstd -d data/vespa_update-96k.json.zst` |
| 11 | +- A Valid [OpenAI](https://openai.com/index/openai-api/) API key. Note that you have the option to use any other LLM, which may support Langgraph tools binding. |
| 12 | +- Uncompress the data file: `zstd -d data/vespa_feed-96k.json.zst` |
15 | 13 |
|
16 | 14 |
|
17 | 15 |
|
18 |
| -# Deploy the Ecommerce Vespa Application |
| 16 | +# Deploy the Vespa Application |
19 | 17 |
|
20 | 18 |
|
21 |
| -- In the system-test repo you just cloned, navigate to `tests/performance/ecommerce_hybrid_search/app` |
| 19 | +- Navigate to the `app` subdirectory |
22 | 20 | - Choose a name for your app. For example `ecommercebot`
|
23 | 21 | - Follow instructions in the [**Getting Started**](https://cloud.vespa.ai/en/getting-started) document. Please note the following as you go through the documentation:
|
| 22 | + - Skip Step 5. as you have already cloned the app directory. |
24 | 23 | - You will need your tenant name you created previously.
|
25 | 24 | - When adding the public certificates with `vespa auth cert`, it will give you the absolute path of the certificate and the private key. Please note them down.
|
26 |
| - - To feed the application, return to the original directory and run: |
| 25 | + - Return to the parent directory. To feed the application, run: |
27 | 26 | ```
|
28 |
| - vespa feed data/vespa_update-96k.json |
| 27 | + cd .. |
| 28 | + vespa feed data/vespa_feed-96k.json |
29 | 29 | ```
|
30 | 30 | - You can test the following query from the Vespa CLI:
|
31 | 31 | ```
|
|
45 | 45 |
|
46 | 46 | A template for `secrets.toml` file to store streamlit secrets has been provided. Please create a subdirectory `.streamlit` and copy the template there.
|
47 | 47 |
|
48 |
| - Update all the fields with all the information collected previously and save the file as `secrets.toml` |
| 48 | + Update all the fields with all the information collected previously including the certicate locations and save the file as `secrets.toml` |
49 | 49 |
|
50 | 50 | Launch your streamlit application:
|
51 | 51 | ```
|
52 | 52 | streamlit run streamlit_vespa_app.py
|
53 | 53 | ```
|
54 |
| - # Testing the Application |
55 |
| - |
56 |
| - You can try a mix of questions like: |
57 |
| - |
58 |
| - `What is the weather in Toronto ?` |
59 |
| - |
60 |
| - Followed by: |
61 |
| - |
62 |
| - `I'm looking for a screwdriver` |
63 |
| - |
64 |
| - And then: |
65 | 54 |
|
66 |
| - `Which one do you recommend to fix a watch?` |
0 commit comments