We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacded3 commit 343f944Copy full SHA for 343f944
2 files changed
llama-index-integrations/readers/llama-index-readers-mongodb/llama_index/readers/mongodb/base.py
@@ -99,7 +99,7 @@ def lazy_load_data(
99
yield Document(text=text)
100
else:
101
try:
102
- metadata = {name: item[name] for name in metadata_names}
+ metadata = {name: item.get(name) for name in metadata_names}
103
except KeyError as err:
104
raise ValueError(
105
f"{err.args[0]} field not found in Mongo document."
llama-index-integrations/readers/llama-index-readers-mongodb/pyproject.toml
@@ -28,7 +28,7 @@ license = "MIT"
28
maintainers = ["jerryjliu"]
29
name = "llama-index-readers-mongodb"
30
readme = "README.md"
31
-version = "0.1.4"
+version = "0.1.5"
32
33
[tool.poetry.dependencies]
34
python = ">=3.8.1,<4.0"
0 commit comments