Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smatiolids/nodejs-vectorsearch-api


https://github.com/smatiolids/nodejs-vectorsearch-api

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# NodeJS Vector Search API

Sample code for deploying an API that performs Vector Search on a DataStax Enterprise table

# API

endpoint: /api/search
parameters:
- emb: Array of Floats with the embedding generated by a model
- limit: Number of records to return

endpoint: /api/search_agg
parameters:
- emb: Array of Floats with the embedding generated by a model
- limit: Number of records to return

endpoint: /api/search_text
parameters:
- text: Text to search
- limit: Number of records to return

endpoint: /api/search_tags
parameters:
- tag: Tag to search
- limit: Number of records to return

endpoint: /api/search_metadata
parameters:
- key: Key of the metadata attribute to search
- limit: Number of records to return

endpoint: /api/search_metadata
parameters:
- key: Key of the metadata attribute to search
- value: Value to filter
- limit: Number of records to return