Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved metadata at ingest #800

Open
lavericklavericklaverick opened this issue May 20, 2024 · 0 comments
Open

Improved metadata at ingest #800

lavericklavericklaverick opened this issue May 20, 2024 · 0 comments

Comments

@lavericklavericklaverick

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant