Skip to content

Commit

Permalink
filter valid chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Jun 25, 2024
1 parent 7582341 commit d5fb907
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doc_builder/build_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def build_embeddings(
# return

# Step 2: create embeddings
chunks = [chunk for chunk in chunks if chunk.text and chunk.source and chunk.package_name] # filter valid chunks
embeddings = call_embedding_inference(chunks, hf_ie_name, hf_ie_namespace, hf_ie_token)

# Step 3: push embeddings to vector database (meilisearch)
Expand Down

0 comments on commit d5fb907

Please sign in to comment.