-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edit/add readme for saas examples (#168)
- Loading branch information
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Vector embedding search using TransformersJS | ||
![image](https://github.com/lancedb/vectordb-recipes/assets/43097991/41c1dea3-ad28-42c1-969f-a81146f202e9) | ||
|
||
|
||
### Set credentials | ||
if you would like to set api key through an environment variable: | ||
``` | ||
export LANCEDB_API_KEY="sk_..." | ||
``` | ||
|
||
replace the following lines in index.js with your project slug and api key" | ||
``` | ||
db_url: "db://your-project-slug-name" | ||
api_key: "sk_..." | ||
region: "us-east-1" | ||
``` | ||
|
||
### Setup | ||
Install node dependencies | ||
```javascript | ||
npm install | ||
``` | ||
|
||
### Javascript | ||
Run the script | ||
```javascript | ||
node index.js | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters