mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
update dimensions for image tools
This commit is contained in:
@@ -443,7 +443,7 @@ export async function buildImageReferences(
|
||||
// const embeddingsResult = await getEmbeddings(validAnswerChunks, context.tokenTracker, embeddingOptions); // No embeddingOptions needed here
|
||||
// answerEmbeddings.push(...embeddingsResult.embeddings);
|
||||
const embeddingsResult = await getEmbeddings(validAnswerChunks, context.tokenTracker, {
|
||||
dimensions: 1024,
|
||||
dimensions: 512,
|
||||
model: 'jina-clip-v2',
|
||||
});
|
||||
answerEmbeddings.push(...embeddingsResult.embeddings);
|
||||
|
||||
@@ -122,7 +122,7 @@ export const processImage = async (url: string, tracker: TokenTracker): Promise<
|
||||
const base64Data = (await canvasToDataUrl(canvas)).split(',')[1];
|
||||
|
||||
const {embeddings} = await getEmbeddings([{ image: base64Data }], tracker, {
|
||||
dimensions: 1024,
|
||||
dimensions: 512,
|
||||
model: 'jina-clip-v2',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user