mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-03 10:12:33 +00:00
Fix formatting
This commit is contained in:
parent
24eb244ffb
commit
26339ef188
@ -647,9 +647,12 @@ async def aindex(
|
|||||||
)
|
)
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
||||||
if type(destination).adelete == VectorStore.adelete and type(destination).delete == VectorStore.delete:
|
if (
|
||||||
# Checking if the vectorstore has overridden the default adelete or delete methods
|
type(destination).adelete == VectorStore.adelete
|
||||||
# implementation which just raises a NotImplementedError
|
and type(destination).delete == VectorStore.delete
|
||||||
|
):
|
||||||
|
# Checking if the vectorstore has overridden the default adelete or delete
|
||||||
|
# methods implementation which just raises a NotImplementedError
|
||||||
msg = "Vectorstore has not implemented the adelete or delete method"
|
msg = "Vectorstore has not implemented the adelete or delete method"
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
elif isinstance(destination, DocumentIndex):
|
elif isinstance(destination, DocumentIndex):
|
||||||
|
Loading…
Reference in New Issue
Block a user