Skip to content

Commit 63099af

Browse files
authored
Revert "[ENH] Export schema and search types from chromadb.api (#5736)"
This reverts commit ddde624.
1 parent ff1285d commit 63099af

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

chromadb/api/__init__.py

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,3 @@
1-
from chromadb.api.types import * # noqa: F401, F403
2-
from chromadb.execution.expression import ( # noqa: F401, F403
3-
Search,
4-
Key,
5-
K,
6-
SearchWhere,
7-
And,
8-
Or,
9-
Eq,
10-
Ne,
11-
Gt,
12-
Gte,
13-
Lt,
14-
Lte,
15-
In,
16-
Nin,
17-
Regex,
18-
NotRegex,
19-
Contains,
20-
NotContains,
21-
Limit,
22-
Select,
23-
Rank,
24-
Abs,
25-
Div,
26-
Exp,
27-
Log,
28-
Max,
29-
Min,
30-
Mul,
31-
Knn,
32-
Rrf,
33-
Sub,
34-
Sum,
35-
Val,
36-
)
37-
381
from abc import ABC, abstractmethod
392
from typing import Sequence, Optional, List, Dict, Any
403
from uuid import UUID
@@ -67,8 +30,8 @@
6730
SearchResult,
6831
DefaultEmbeddingFunction,
6932
)
70-
7133
from chromadb.auth import UserIdentity
34+
from chromadb.execution.expression.plan import Search
7235
from chromadb.config import Component, Settings
7336
from chromadb.types import Database, Tenant, Collection as CollectionModel
7437
from chromadb.api.models.Collection import Collection

chromadb/execution/expression/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,13 @@
4545
Search,
4646
)
4747

48-
SearchWhere = Where
49-
5048
__all__ = [
5149
# Main search class
5250
"Search",
5351
# Field proxy
5452
"Key",
5553
"K",
5654
# Where expressions
57-
"SearchWhere",
5855
"Where",
5956
"And",
6057
"Or",

0 commit comments

Comments
 (0)