autogen/test
Audel Rouhi bf7e4d619c
Bugfix: PGVector/RAG - Calculate the Vector Size based on Model Dimensions (#2865)
* Calculate the dimension size based off model chosen.

* Added example docstring.

* Validated working notebook with sentence models of different dimensions.

* Validated removal of model_name working.

* Second example uses conn object.

* embedding_function no longer directly references .encode

* Fixed pre-commit issue.

* Use try/except to raise error when shape is not found in embedding function.

* Re-ran notebook.

* Update autogen/agentchat/contrib/vectordb/pgvectordb.py

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Update autogen/agentchat/contrib/vectordb/pgvectordb.py

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Added .encode

* Removed example comment.

* Fix overwrite doesn't work with existing collection when custom embedding function has different dimension from default one

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-11 12:16:56 +00:00
..
agentchat Bugfix: PGVector/RAG - Calculate the Vector Size based on Model Dimensions (#2865) 2024-06-11 12:16:56 +00:00
cache Streamline Testing with `pytest-cov` and `pytest` Defaults (#2490) 2024-04-29 00:27:34 +00:00
coding Feature: Add ability to use a separate python environment in local executor (#2615) 2024-05-11 06:25:20 +00:00
io Add isort (#2265) 2024-04-05 02:26:06 +00:00
oai version update (#2908) 2024-06-10 18:23:51 +00:00
test_files Agenteval integration (#2672) 2024-05-14 07:14:37 +00:00
conftest.py fix local test failures (#2386) 2024-04-15 12:34:26 +00:00
test_browser_utils.py Add isort (#2265) 2024-04-05 02:26:06 +00:00
test_code_utils.py Feature: Add ability to use a separate python environment in local executor (#2615) 2024-05-11 06:25:20 +00:00
test_function_utils.py allow serialize_to_str to work with non ascii when dumping via json.dumps (#2714) 2024-05-24 17:51:15 +00:00
test_graph_utils.py Add isort (#2265) 2024-04-05 02:26:06 +00:00
test_logging.py version update (#2908) 2024-06-10 18:23:51 +00:00
test_notebook.py Add isort (#2265) 2024-04-05 02:26:06 +00:00
test_pydantic.py Add decorator for function calling (#1018) 2023-12-25 16:07:20 +00:00
test_retrieve_utils.py Add source to the answer for default prompt (#2289) 2024-04-10 00:45:26 +00:00
test_token_count.py Add isort (#2265) 2024-04-05 02:26:06 +00:00
twoagent.py set use_docker to default to True (#1147) 2024-01-18 17:03:49 +00:00