Skip to content

Commit

Permalink
added chunk index to supabase metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Oct 26, 2023
1 parent daa0fa9 commit 936ee47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ai_ta_backend/vector_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ def split_and_upload(self, texts: List[str], metadatas: List[Dict[str, Any]]):
"text": context.page_content,
"pagenumber": context.metadata.get('pagenumber'),
"timestamp": context.metadata.get('timestamp'),
"chunk_index": context.metadata.get('chunk_index'),
"embedding": embeddings_dict[context.page_content]
} for context in contexts]

Expand Down

0 comments on commit 936ee47

Please sign in to comment.