semantic-retrieval
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Development

This library uses yarn for package management.

git clone https://github.com/lastmile-ai/semantic-retrieval
cd semantic-retrieval/typescript
yarn

Testing

To run all tests, do:

yarn test

To run an individual test, use yarn test <filename.test.ts>.

Examples & Demos

Example scripts, such as localFileIngestion can be run via ts-node:

npx ts-node examples/ingestion/localFileIngestion.ts

Ensure you have the correct openai and pinecone environment variables set up in a .env file in the typescript directory if not passing the values through the constructors in the scripts:

OPENAI_API_KEY=
PINECONE_ENVIRONMENT=
PINECONE_API_KEY=

if using PineconeVectorDB, ensure you have an Pinecone index created beforehand and set the proper indexName.

Package Sidebar

Install

npm i semantic-retrieval

Weekly Downloads

4

Version

0.0.1

License

MIT

Unpacked Size

225 kB

Total Files

180

Last publish

Collaborators

  • rholinshead