Skip to content

Commit 4d48fcb

Browse files
committed
CrateDB: Stop using local FloatVector implementation
1 parent 0f90c3a commit 4d48fcb

File tree

2 files changed

+1
-90
lines changed

2 files changed

+1
-90
lines changed

libs/community/langchain_community/vectorstores/cratedb/model.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
from typing import Any, List, Optional, Tuple
33

44
import sqlalchemy
5-
try:
6-
from sqlalchemy_cratedb import ObjectType
7-
except ImportError:
8-
from crate.client.sqlalchemy.types import ObjectType
5+
from sqlalchemy_cratedb import ObjectType, FloatVector
96
from sqlalchemy.orm import Session, declarative_base, relationship
107

11-
from langchain_community.vectorstores.cratedb.sqlalchemy_type import FloatVector
12-
138

149
def generate_uuid() -> str:
1510
return str(uuid.uuid4())

libs/community/langchain_community/vectorstores/cratedb/sqlalchemy_type.py

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)