mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
update dimensions for image tools
This commit is contained in:
parent
a768755783
commit
ee5f037dac
@ -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',
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user