Skip to content

Commit

Permalink
Update requests to embeddings service
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansive committed Jan 30, 2024
1 parent 2ce36ec commit 9189581
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ export async function search(query: string) {
}

export async function vectorSearch(query: string) {
const results = await fetch("https://api.embaas.io/v1/embeddings/", {
const results = await fetch("https://api.mixedbread.ai/v1/embeddings/", {
method: "POST",
body: JSON.stringify({
texts: ["query: " + query],
texts: [query],
model: "multilingual-e5-large",
instruction: "query"
}),
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 9189581

Please sign in to comment.