forked from AI_team/Philosophy-RAG-demo
Add filetype key for web chunk
This commit is contained in:
parent
865c2c3b8b
commit
37aa171924
@ -52,6 +52,7 @@ def add_urls(vector_store: Chroma, urls: list[str], chunk_size: int) -> None:
|
||||
|
||||
for split in splits:
|
||||
split.metadata["source"] = url
|
||||
split.metadata["filetype"] = "web"
|
||||
|
||||
all_splits.extend(splits)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user