https://github.com/redis-developer/redis-vector-nodejs-solutions
https://github.com/redis-developer/redis-vector-nodejs-solutions
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redis-developer/redis-vector-nodejs-solutions
- Owner: redis-developer
- Created: 2023-08-22T13:36:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-01T17:23:11.000Z (over 2 years ago)
- Last Synced: 2025-05-08T21:44:04.273Z (10 months ago)
- Language: TypeScript
- Size: 211 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started with Vector Search Using Redis in NodeJS
Code base for [tutorial](https://developer.redis.com/howtos/solutions/vector/getting-started-vector)
## Project setup
Add .env file at project root with `REDIS_URI` connection string
```.env
REDIS_URI="redis://localhost:6379"
```
### Install packages
```sh
npm install
```
### Start app
```sh
npm start
```
### Testing vector search
`src/index.ts` file has `testVectorQueryByKNNandRangeForText()` method where vector search can be tested with different search term.