mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
Fix typing
This commit is contained in:
parent
5e9d4c8910
commit
d6fdb736d9
@ -1,10 +1,10 @@
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict
|
||||
from typing import Dict
|
||||
|
||||
from langchain_community.document_loaders import JSONLoader
|
||||
|
||||
|
||||
def call_back(sample: str, additional_fields: Dict[str, Any]) -> Dict[str, Any]:
|
||||
def call_back(sample: Dict, additional_fields: Dict) -> Dict:
|
||||
metadata = additional_fields.copy()
|
||||
metadata["source"] += f"#seq_num={metadata['seq_num']}"
|
||||
return metadata
|
||||
|
Loading…
Reference in New Issue
Block a user