mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 13:23:35 +00:00
langchain[minor]: Tests update metadata filtering examples of documents (#19963)
Removing metadata properties that are dicts as some databases don't support that, and those properties aren't used in tests anyhow..
This commit is contained in:
parent
c6432abdbe
commit
09a0ecd000
@ -10,7 +10,6 @@ metadatas = [
|
|||||||
"is_active": True,
|
"is_active": True,
|
||||||
"tags": ["a", "b"],
|
"tags": ["a", "b"],
|
||||||
"location": [1.0, 2.0],
|
"location": [1.0, 2.0],
|
||||||
"info": {"address": "123 main st", "phone": "123-456-7890"},
|
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"height": 10.0, # Float column
|
"height": 10.0, # Float column
|
||||||
"happiness": 0.9, # Float column
|
"happiness": 0.9, # Float column
|
||||||
@ -23,7 +22,6 @@ metadatas = [
|
|||||||
"is_active": False,
|
"is_active": False,
|
||||||
"tags": ["b", "c"],
|
"tags": ["b", "c"],
|
||||||
"location": [2.0, 3.0],
|
"location": [2.0, 3.0],
|
||||||
"info": {"address": "456 main st", "phone": "123-456-7890"},
|
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"height": 5.7, # Float column
|
"height": 5.7, # Float column
|
||||||
"happiness": 0.8, # Float column
|
"happiness": 0.8, # Float column
|
||||||
@ -36,7 +34,6 @@ metadatas = [
|
|||||||
"is_active": True,
|
"is_active": True,
|
||||||
"tags": ["b", "d"],
|
"tags": ["b", "d"],
|
||||||
"location": [3.0, 4.0],
|
"location": [3.0, 4.0],
|
||||||
"info": {"address": "789 main st", "phone": "123-456-7890"},
|
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"height": 2.4, # Float column
|
"height": 2.4, # Float column
|
||||||
"happiness": None,
|
"happiness": None,
|
||||||
|
Loading…
Reference in New Issue
Block a user