Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to perform vector search via gRPC service #315

Open
gsantopaolo opened this issue Jul 2, 2024 · 0 comments
Open

ability to perform vector search via gRPC service #315

gsantopaolo opened this issue Jul 2, 2024 · 0 comments
Assignees
Labels

Comments

@gsantopaolo
Copy link
Contributor

We need the ability to switch between the actual search on the vector database build in the Go code to a search performed via a gRPC service.
This way, we will be able to perform Data Science ops on the vector search.

Env var on cognix-api:
API-VECTOR-SEARCH:

Allowed values:
INTERNAL
GRPC-SERVICE

Default (if not provided or not able to find in env vars, INTERNAL)

INTERNAL: the API performs a vector search inside the go code, the search we have right now.

GRPC-SERIVCE: The API call a gRPC unary service described below that will return a list of document IDs

With this list the API will complete the search flow invoking the LLM

gRPC search service definition

`// gRPC Service
syntax = "proto3";

package com.cognix;
option go_package = "backend/core/proto;proto";

message SearchRequest {
string content = 1;
string model = 2;
}

message SearchResponse {
repeated int64 vector = 1;
}

service SearchService {
rpc VectorSearch (SearchRequest) returns (SearchResponse) {}
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants