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.
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/PKG-INFO +2 -2
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/search_task.py +8 -8
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/pyproject.toml +2 -2
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/LICENSE +0 -0
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/README-public.md +0 -0
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/__init__.py +0 -0
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/commons.py +0 -0
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/postgresql.svg +0 -0
- {cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/store_task.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cmem-plugin-pgvector
|
|
3
|
-
Version: 0.6.
|
|
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.
|
|
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
|
|
{cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/search_task.py
RENAMED
|
@@ -40,12 +40,12 @@ The results in this output are structured like this:
|
|
|
40
40
|
|
|
41
41
|
``` json
|
|
42
42
|
[
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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["
|
|
181
|
-
json_entity["
|
|
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.
|
|
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.
|
|
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]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/postgresql.svg
RENAMED
|
File without changes
|
{cmem_plugin_pgvector-0.6.0 → cmem_plugin_pgvector-0.6.1}/cmem_plugin_pgvector/store_task.py
RENAMED
|
File without changes
|