Skip to content

Commit

Permalink
comment out debugging logging on embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
o-on-x committed Nov 11, 2024
1 parent f3a0269 commit a27ba5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/embedding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function getRemoteEmbedding(input: string, options: EmbeddingOptions): Pro
// Construct full URL
const fullUrl = `${baseEndpoint}/embeddings`;

console.log("Calling embedding API at:", fullUrl); // Debug log
//console.log("Calling embedding API at:", fullUrl); // Debug log

const requestOptions = {
method: "POST",
Expand Down Expand Up @@ -129,7 +129,7 @@ async function getLocalEmbedding(input: string): Promise<number[]> {

const trimmedInput = trimTokens(input, 8000, "gpt-4o-mini");
const embedding = await embeddingModel.queryEmbed(trimmedInput);
console.log("Embedding dimensions: ", embedding.length);
//console.log("Embedding dimensions: ", embedding.length);
return embedding;
}

Expand Down

0 comments on commit a27ba5f

Please sign in to comment.