Skip to content

Commit b454305

Browse files
authored
Add files via upload
1 parent dbcccdf commit b454305

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed
+10-22
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# Prerequisites
22

3-
3+
- Clone this repo and navigate to this directory.
44
- You need a python virtual environment. For this demo, `Python 3.13.1` was used, but any Python environment 3.11+ should work.
55
- You will need [Vespa CLI](https://docs.vespa.ai/en/vespa-cli.html) that you can deploy on MacOS with `brew install vespa-cli`
66
- Libraries dependencies can be installed with: `pip install -R requirements.txt`
77
- Sign-up with [Tavily](https://tavily.com/) and Get an API key.
88
- Spin-up a Vespa Cloud [Trial](https://vespa.ai/free-trial) account:
99
- Login to the account you just created and create a tenant at [console.vespa-cloud.com](https://console.vespa-cloud.com/).
1010
- 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`
1513

1614

1715

18-
# Deploy the Ecommerce Vespa Application
16+
# Deploy the Vespa Application
1917

2018

21-
- In the system-test repo you just cloned, navigate to `tests/performance/ecommerce_hybrid_search/app`
19+
- Navigate to the `app` subdirectory
2220
- Choose a name for your app. For example `ecommercebot`
2321
- 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.
2423
- You will need your tenant name you created previously.
2524
- 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:
2726
```
28-
vespa feed data/vespa_update-96k.json
27+
cd ..
28+
vespa feed data/vespa_feed-96k.json
2929
```
3030
- You can test the following query from the Vespa CLI:
3131
```
@@ -45,22 +45,10 @@
4545

4646
A template for `secrets.toml` file to store streamlit secrets has been provided. Please create a subdirectory `.streamlit` and copy the template there.
4747

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`
4949

5050
Launch your streamlit application:
5151
```
5252
streamlit run streamlit_vespa_app.py
5353
```
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:
6554

66-
`Which one do you recommend to fix a watch?`

0 commit comments

Comments
 (0)