python/src/tablestore_for_agent_memory/knowledge/knowledge_store.py [61:68]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self._check_vector_dimension(document)
        self._check_enable_multi_tenant(document)
        primary_key = [("document_id", document.document_id), ("tenant_id", document.tenant_id)]
        attribute_columns = TablestoreHelper.meta_data_to_ots_columns(document.metadata)
        if document.text:
            attribute_columns.append((self._text_field, document.text))
        if document.embedding:
            attribute_columns.append((self._embedding_field, json.dumps(document.embedding)))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



python/src/tablestore_for_agent_memory/knowledge/knowledge_store.py [73:80]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self._check_vector_dimension(document)
        self._check_enable_multi_tenant(document)
        primary_key = [("document_id", document.document_id), ("tenant_id", document.tenant_id)]
        attribute_columns = TablestoreHelper.meta_data_to_ots_columns(document.metadata)
        if document.text:
            attribute_columns.append((self._text_field, document.text))
        if document.embedding:
            attribute_columns.append((self._embedding_field, json.dumps(document.embedding)))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



