Skip to content

Commit a8171db

Browse files
author
timpratim
committed
Add import details
1 parent 286a83a commit a8171db

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

vector-search/README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ Vector search allows for similarity-based queries on high-dimensional data, whic
88

99
- [SurrealDB installed](https://surrealdb.com/install) and running
1010
- Ollama installed with the [nomic-embed-text model](https://ollama.com/library/nomic-embed-text)
11-
- Import [Surreal Deal dataset](https://surrealdb.com/docs/surrealdb/surrealql/demo).
11+
- Import the SurrealDB store dataset with embeddings.
1212

1313
## Setup
1414

15-
Import the dataset that includes vector embeddings for products.
15+
- Start your SurrealDB server.
16+
```sh
17+
surreal start memory -A --auth --user root --pass root
18+
```
19+
- [Import](https://surrealdb.com/docs/surrealdb/cli/import) the dataset that includes vector embeddings for products. Use the following command:
20+
```sh
21+
surreal import --conn http://localhost:8000 --user root --pass root --ns test --db test /path/to/surreal-deal-store.surql
22+
```
23+
24+
Make sure to put in the correct username and password here.
1625
The dataset already includes the vector indexes and fields to store embeddings.
1726

1827
The product embeddings will be stored in the `details_embedding` field.

0 commit comments

Comments
 (0)