cmem-plugin-pgvector 0.6.0__tar.gz → 0.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cmem-plugin-pgvector
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Store and search for embedding vectors in a Postgres vector store.
5
5
  License: Apache-2.0
6
6
  Keywords: eccenca Corporate Memory,plugin
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
19
  Requires-Dist: cmem-plugin-base (>=4.8.0,<5.0.0)
20
20
  Requires-Dist: langchain-community (>=0.3.2,<0.4.0)
21
- Requires-Dist: langchain-postgres (>=0.0.12,<0.0.13)
21
+ Requires-Dist: langchain-postgres (>=0.0.13,<0.0.14)
22
22
  Requires-Dist: psycopg[binary] (>=3.2.3,<4.0.0)
23
23
  Description-Content-Type: text/markdown
24
24
 
@@ -40,12 +40,12 @@ The results in this output are structured like this:
40
40
 
41
41
  ``` json
42
42
  [
43
- {
44
- "id": "..."
45
- "metadata": "..."
46
- "content": "..."
47
- "score": "..."
48
- },
43
+ {
44
+ "id": "...",
45
+ "metadata": "..",
46
+ "_embedding_source": "..",
47
+ "distance": ".."
48
+ }
49
49
  ...
50
50
  ]
51
51
  ```
@@ -177,8 +177,8 @@ class PGVectorSearchPlugin(WorkflowPlugin):
177
177
  json_entity = {}
178
178
  json_entity["id"] = doc_tuple[0].id
179
179
  json_entity["metadata"] = str(doc_tuple[0].metadata)
180
- json_entity["content"] = doc_tuple[0].page_content
181
- json_entity["score"] = str(doc_tuple[1])
180
+ json_entity["_embedding_source"] = doc_tuple[0].page_content
181
+ json_entity["distance"] = str(doc_tuple[1])
182
182
  doc_list.append(json_entity)
183
183
  return doc_list
184
184
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cmem-plugin-pgvector"
3
- version = "0.6.0"
3
+ version = "0.6.1"
4
4
  license = "Apache-2.0"
5
5
  description = "Store and search for embedding vectors in a Postgres vector store."
6
6
  authors = ["eccenca GmbH <cmempy-developer@eccenca.com>"]
@@ -17,7 +17,7 @@ keywords = [
17
17
  [tool.poetry.dependencies]# if you need to change python version here, change it also in .python-version
18
18
  python = "^3.11"
19
19
  langchain-community = "^0.3.2"
20
- langchain-postgres = "^0.0.12"
20
+ langchain-postgres = "^0.0.13"
21
21
  psycopg = {extras = ["binary"], version = "^3.2.3"}
22
22
 
23
23
  [tool.poetry.dependencies.cmem-plugin-base]