You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Id like to add more metadata to the chromadb.
I can see that its added here: def split_documents(documents: list[Document]) -> tuple[list[Document], list[Document]]: # Splits documents for correct Text Splitter text_docs, python_docs = [], [] for doc in documents: if doc is not None: file_extension = os.path.splitext(doc.metadata["source"])[1] if file_extension == ".py": python_docs.append(doc) else: text_docs.append(doc) return text_docs, python_docs
however im not sure how i would add more - ie page number, date etc (i would retrieve these values myself)
if anyone has any ideas please let me know.
many thanks
The text was updated successfully, but these errors were encountered:
Hi, Id like to add more metadata to the chromadb.
I can see that its added here:
def split_documents(documents: list[Document]) -> tuple[list[Document], list[Document]]: # Splits documents for correct Text Splitter text_docs, python_docs = [], [] for doc in documents: if doc is not None: file_extension = os.path.splitext(doc.metadata["source"])[1] if file_extension == ".py": python_docs.append(doc) else: text_docs.append(doc) return text_docs, python_docs
however im not sure how i would add more - ie page number, date etc (i would retrieve these values myself)
if anyone has any ideas please let me know.
many thanks
The text was updated successfully, but these errors were encountered: