Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Fix deprecated langchain imports
Browse files
vectorstore/pinecone_delta_upsert.py
CHANGED
|
@@ -117,7 +117,7 @@ def chunk_bill(bill: Dict[str, Any], size: int = 1500, overlap: int = 200) -> Li
|
|
| 117 |
Includes numeric fields: session_year_start, session_year_end, last_action_ts (epoch seconds).
|
| 118 |
Stores iapp_flat as list[str] for Pinecone $in filters.
|
| 119 |
"""
|
| 120 |
-
from
|
| 121 |
|
| 122 |
doc_id = f"{bill.get('state','Unknown')}_{bill.get('bill_number','Unknown')}"
|
| 123 |
title = bill.get("title") or ""
|
|
|
|
| 117 |
Includes numeric fields: session_year_start, session_year_end, last_action_ts (epoch seconds).
|
| 118 |
Stores iapp_flat as list[str] for Pinecone $in filters.
|
| 119 |
"""
|
| 120 |
+
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
| 121 |
|
| 122 |
doc_id = f"{bill.get('state','Unknown')}_{bill.get('bill_number','Unknown')}"
|
| 123 |
title = bill.get("title") or ""
|