Shreekant Kalwar (Nokia)
commited on
Commit
·
bd0e7a0
1
Parent(s):
153e456
testing
Browse files
util.py
CHANGED
|
@@ -16,6 +16,8 @@ import json
|
|
| 16 |
from bson import ObjectId
|
| 17 |
|
| 18 |
|
|
|
|
|
|
|
| 19 |
def build_content(doc: dict, entity_type: str) -> str:
|
| 20 |
"""Convert MongoDB document into natural text for embeddings."""
|
| 21 |
parts = [f"{entity_type} ID: {doc.get('id', str(doc.get('_id', '')))}"]
|
|
|
|
| 16 |
from bson import ObjectId
|
| 17 |
|
| 18 |
|
| 19 |
+
|
| 20 |
+
|
| 21 |
def build_content(doc: dict, entity_type: str) -> str:
|
| 22 |
"""Convert MongoDB document into natural text for embeddings."""
|
| 23 |
parts = [f"{entity_type} ID: {doc.get('id', str(doc.get('_id', '')))}"]
|