-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing doc tweaks. Implement windowing size param for for messages_d…
…b, to limit message storage per history key.
- Loading branch information
Showing
7 changed files
with
196 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
To run these tests, first set up a mock Postgres instance with the following commands | ||
(make sure you don't have anything running on port 0.0.0.0:5432): | ||
|
||
```sh | ||
docker pull ankane/pgvector | ||
docker run --name mock-postgres -p 5432:5432 \ | ||
-e POSTGRES_USER=mock_user -e POSTGRES_PASSWORD=mock_password -e POSTGRES_DB=mock_db \ | ||
-d ankane/pgvector | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
# SPDX-FileCopyrightText: 2023-present Oori Data <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# test/embedding/test_pgvector.py | ||
# test/embedding/test_pgvector_doc.py | ||
''' | ||
Set up a mock Postgres instance with the following commands | ||
(make sure you don't have anything running on port 0.0.0.0:5432))): | ||
docker pull ankane/pgvector | ||
docker run --name mock-postgres -p 5432:5432 \ | ||
-e POSTGRES_USER=mock_user -e POSTGRES_PASSWORD=mock_password -e POSTGRES_DB=mock_db \ | ||
-d ankane/pgvector | ||
Then run the tests with: | ||
pytest test | ||
After setup as described in the README.md for this directory, run the tests with: | ||
or | ||
pytest test | ||
pytest test/embedding/test_pgvector.py | ||
or, for just this test module: | ||
Uses fixtures from ../conftest.py | ||
pytest test/embedding/test_pgvector_doc.py | ||
Uses fixtures from conftest.py in current & parent directories | ||
''' | ||
|
||
import pytest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters