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
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "langchain-google-memorystore-redis"
version = "0.0.1"
dynamic = ["version"]
description = "LangChain integrations for Google Cloud Memorystore"
readme = "README.md"
license = {file = "LICENSE"}
Expand All @@ -11,6 +11,9 @@ dependencies = [
"numpy>=1.21.0",
]

[tool.setuptools.dynamic]
version = {attr = "langchain_google_memorystore_redis.version.__version__"}

[project.urls]
Homepage = "https://github.com/googleapis/langchain-google-memorystore-redis-python"
Repository = "https://github.com/googleapis/langchain-google-memorystore-redis-python.git"
Expand Down
8 changes: 5 additions & 3 deletions src/langchain_google_memorystore_redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from .chat_message_history import MemorystoreChatMessageHistory
from .document_loader import MemorystoreDocumentLoader
from .document_saver import MemorystoreDocumentSaver
from .vector_store import (
from .loader import MemorystoreDocumentLoader
from .saver import MemorystoreDocumentSaver
from .vectorstore import (
DistanceStrategy,
FLATConfig,
HNSWConfig,
RedisVectorStore,
VectorIndexConfig,
)
from .version import __version__

__all__ = [
"MemorystoreChatMessageHistory",
Expand All @@ -31,4 +32,5 @@
"FLATConfig",
"HNSWConfig",
"RedisVectorStore",
"__version__",
]
15 changes: 15 additions & 0 deletions src/langchain_google_memorystore_redis/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.0.1"
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import redis
from langchain_core.documents.base import Document

from langchain_google_memorystore_redis.document_loader import MemorystoreDocumentLoader
from langchain_google_memorystore_redis.document_saver import MemorystoreDocumentSaver
from langchain_google_memorystore_redis.loader import MemorystoreDocumentLoader
from langchain_google_memorystore_redis.saver import MemorystoreDocumentSaver


@pytest.mark.parametrize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import redis
from langchain_core.documents.base import Document

from langchain_google_memorystore_redis.document_saver import MemorystoreDocumentSaver
from langchain_google_memorystore_redis.saver import MemorystoreDocumentSaver


@pytest.mark.parametrize(
Expand Down