Types
turbine.Project
Bases: BaseModel
Project details.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
Project ID. |
config |
ProjectConfig
|
Project configuration. |
turbine.SearchResult
Bases: BaseModel
Search result.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
Document ID. |
score |
float
|
Search score. |
turbine.ProjectConfig
Bases: BaseModel
Project configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
data_source |
DataSource
|
Data source configuration. |
vector_db |
Literal['milvus', 'pinecone']
|
Vector database to use. |
embedding_model |
Literal['text-embedding-ada-002', 'all-MiniLM-L6-v2']
|
Embedding model to use. |
turbine.DataSource
Bases: BaseModel
Data source configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
Literal['postgres', 'mongo']
|
Data source type. |
config |
PostgresConfig or MongoConfig
|
Data source configuration. Can be PostgresConfig or MongoConfig. |
fields |
List[str]
|
Fields to index. |
turbine.PostgresConfig
Bases: BaseModel
Postgres data source configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
url |
str
|
Postgres connection URL. |
table |
str
|
Postgres table name. |
turbine.MongoConfig
Bases: BaseModel
Mongo data source configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
url |
str
|
Mongo connection URL. |
collection |
str
|
Mongo collection name. |