Skip to content

Commit

Permalink
hotfix (crawl): log content byte size
Browse files Browse the repository at this point in the history
  • Loading branch information
karahan-sahin committed Feb 14, 2024
1 parent 82db2e6 commit 4b5894b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions api/src/libs/kafka-indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ export const createEmbeddingEvent = async (id) => {
payload.indexOwnerBio = embedding.index.ownerDID.bio
}

// console.log("Payload", payload)

try {
const indexResponse = await axios.post(`${process.env.LLM_INDEXER_HOST}/indexer/index?indexId=${embedding.item.id}`, payload)
console.log(`IndexItem ${payload.webPageId} with ${payload.webPageUrl} Indexed with it's content and embeddings`)
Expand Down
2 changes: 1 addition & 1 deletion indexer/src/indexer/service/indexer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class IndexerService {
content = content + '\n' + doc?.pageContent;
}

Logger.log(`Extracted ${docs[0].pageContent.length} bytes from ${url}`, 'indexerService:crawl');
Logger.log(`Extracted ${content.length} bytes from ${url}`, 'indexerService:crawl');

return {
url: url,
Expand Down

0 comments on commit 4b5894b

Please sign in to comment.