diff --git a/indexer/indexer/embeddings.py b/indexer/indexer/embeddings.py index 87b54f2..248e193 100644 --- a/indexer/indexer/embeddings.py +++ b/indexer/indexer/embeddings.py @@ -77,6 +77,8 @@ def extract_content(record: dict) -> Optional[str]: parts.append(description) if content := record.get("content"): parts.append(content) + if thought := record.get("thought"): + parts.append(thought) if context := record.get("context"): parts.append(context) if text := record.get("text"): diff --git a/indexer/lexicons/network.comind.search.query.json b/indexer/lexicons/network.comind.search.query.json index 79d9d00..5e2556b 100644 --- a/indexer/lexicons/network.comind.search.query.json +++ b/indexer/lexicons/network.comind.search.query.json @@ -37,7 +37,18 @@ "properties": { "results": { "type": "array", - "items": { "$ref": "#/$defs/searchResult" } + "items": { + "type": "object", + "required": ["uri", "did", "collection", "score"], + "properties": { + "uri": { "type": "string", "format": "at-uri" }, + "did": { "type": "string", "format": "did" }, + "collection": { "type": "string" }, + "content": { "type": "string" }, + "score": { "type": "number" }, + "createdAt": { "type": "string", "format": "datetime" } + } + } } } } diff --git a/indexer/lexicons/network.comind.search.similar.json b/indexer/lexicons/network.comind.search.similar.json index b7d2baa..30bd54f 100644 --- a/indexer/lexicons/network.comind.search.similar.json +++ b/indexer/lexicons/network.comind.search.similar.json @@ -39,7 +39,18 @@ }, "results": { "type": "array", - "items": { "$ref": "network.comind.search.query#searchResult" } + "items": { + "type": "object", + "required": ["uri", "did", "collection", "score"], + "properties": { + "uri": { "type": "string", "format": "at-uri" }, + "did": { "type": "string", "format": "did" }, + "collection": { "type": "string" }, + "content": { "type": "string" }, + "score": { "type": "number" }, + "createdAt": { "type": "string", "format": "datetime" } + } + } } } }