Skip to content

Commit

Permalink
Update indexer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jan 26, 2025
1 parent 6372f03 commit 53232c5
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions api/src/libs/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,25 +149,6 @@ class Indexer {
input: docText,
});


console.log({
ids: [indexItem.itemId],
embeddings: [embeddingResponse.data[0].embedding],
documents: [JSON.stringify(itemStream.content)],
metadatas: [{
modelName: process.env.MODEL_EMBEDDING,
modelId: indexItem.modelId,
indexId: indexItem.indexId,
itemId: indexItem.itemId,
createdAt: new Date(indexItem.createdAt).getTime(),
updatedAt: new Date(indexItem.updatedAt).getTime(),
}]
})






const metadatas = getMetadataForModel(indexItem.modelId, itemStream.content);
console.log(metadatas)
Expand Down

0 comments on commit 53232c5

Please sign in to comment.