Skip to content

Commit

Permalink
Release version 0.5.0 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet authored Sep 27, 2024
1 parent 3eb73d7 commit 5f0a566
Show file tree
Hide file tree
Showing 5 changed files with 808 additions and 678 deletions.
4 changes: 2 additions & 2 deletions libs/astradb/langchain_astradb/graph_vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
Sequence,
)

from langchain_core.documents import Document
from langchain_core.graph_vectorstores.base import (
from langchain_community.graph_vectorstores.base import (
GraphVectorStore,
Node,
)
from langchain_core.documents import Document
from typing_extensions import override

from langchain_astradb import AstraDBVectorStore
Expand Down
4 changes: 2 additions & 2 deletions libs/astradb/langchain_astradb/utils/astradb.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __init__(
self.database = self.data_api_client.get_database(
api_endpoint=self.api_endpoint,
token=self.token,
namespace=self.namespace,
keyspace=self.namespace,
)
self.async_database = self.database.to_async()

Expand Down Expand Up @@ -296,7 +296,7 @@ def __init__(
try:
self.database.create_collection(
name=collection_name,
dimension=embedding_dimension,
dimension=embedding_dimension, # type: ignore[arg-type]
metric=metric,
indexing=requested_indexing_policy,
# Used for enabling $vectorize on the collection
Expand Down
Loading

0 comments on commit 5f0a566

Please sign in to comment.