mirror of
https://github.com/Cinnamon/kotaemon.git
synced 2026-02-23 19:49:37 +01:00
fix: hotfix for LI version change
This commit is contained in:
@@ -100,7 +100,9 @@ class KnetRetrievalPipeline(BaseFileIndexRetriever):
|
||||
# Load YAML content from the response content
|
||||
chunks = yaml.safe_load(response.content)
|
||||
for chunk in chunks:
|
||||
metadata = chunk["node"]["metadata"]
|
||||
metadata = chunk["node"].get("metadata")
|
||||
if not metadata:
|
||||
metadata = chunk["node"].get("extra_info")
|
||||
content_type = metadata.pop("content_type", "")
|
||||
|
||||
metadata["page_label"] = metadata.get(
|
||||
|
||||
Reference in New Issue
Block a user