Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
python -m pip install dist/*.gz
cd ..
python -c "from pymongo_vectorsearch_utils import create_vector_search_index"
python -c "from pymongo_search_utils import create_vector_search_index"

- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

env:
# Changes per repo
PRODUCT_NAME: pymongo-vectorsearch-utils
PRODUCT_NAME: pymongo-search-utils
# Constant
# inputs will be empty on a scheduled run. so, we only set dry_run
# to 'false' when the input is set to 'false'.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# pymongo-vectorsearch-utils
# pymongo-search-utils

A utility library for working with vector search in MongoDB using PyMongo.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from pymongo import ReplaceOne
from pymongo.synchronous.collection import Collection

from pymongo_vectorsearch_utils.pipeline import vector_search_stage
from pymongo_vectorsearch_utils.util import oid_to_str, str_to_oid
from pymongo_search_utils.pipeline import vector_search_stage
from pymongo_search_utils.util import oid_to_str, str_to_oid


def bulk_embed_and_insert_texts(
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pymongo-vectorsearch-utils"
name = "pymongo-search-utils"
dynamic = ["version"]
description = "Utility library for working with vector search in MongoDB using PyMongo"
readme = "README.md"
Expand All @@ -29,8 +29,8 @@ dependencies = [
]

[project.urls]
Download = "https://github.com/mongodb-labs/pymongo-vectorsearch-utils/tags"
Homepage = "http://pymongo-vectorsearch-utils.readthedocs.org/"
Download = "https://github.com/mongodb-labs/pymongo-search-utils/tags"
Homepage = "http://pymongo-search-utils.readthedocs.org/"

[dependency-groups]
dev = [
Expand All @@ -41,11 +41,11 @@ dev = [
]

[tool.hatch.version]
path = "pymongo_vectorsearch_utils/_version.py"
path = "pymongo_search_utils/_version.py"

[tool.hatch.build.targets.sdist]
include = [
"/pymongo_vectorsearch_utils",
"/pymongo_search_utils",
]


Expand Down
4 changes: 2 additions & 2 deletions tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from pymongo import MongoClient
from pymongo.collection import Collection

from pymongo_vectorsearch_utils.index import (
from pymongo_search_utils.index import (
create_vector_search_index,
drop_vector_search_index,
is_index_ready,
update_vector_search_index,
)

DB_NAME = "vectorsearch_utils_test"
DB_NAME = "pymongo_search_utils_test"
COLLECTION_NAME = "test_index"
VECTOR_INDEX_NAME = "vector_index"

Expand Down
8 changes: 4 additions & 4 deletions tests/test_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from pymongo import MongoClient
from pymongo.collection import Collection

from pymongo_vectorsearch_utils import drop_vector_search_index
from pymongo_vectorsearch_utils.index import create_vector_search_index, wait_for_docs_in_index
from pymongo_vectorsearch_utils.operation import bulk_embed_and_insert_texts, execute_search_query
from pymongo_search_utils import drop_vector_search_index
from pymongo_search_utils.index import create_vector_search_index, wait_for_docs_in_index
from pymongo_search_utils.operation import bulk_embed_and_insert_texts, execute_search_query

DB_NAME = "vectorsearch_utils_test"
DB_NAME = "pymongo_search_utils_test"
COLLECTION_NAME = "test_operation"
VECTOR_INDEX_NAME = "operation_vector_index"

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tests for pipeline aggregation generator utilities."""

from pymongo_vectorsearch_utils.pipeline import (
from pymongo_search_utils.pipeline import (
combine_pipelines,
final_hybrid_stage,
reciprocal_rank_stage,
Expand Down