Skip to content

Turbine

turbine.Turbine(api_key, base_url=None)

Turbine client for Python.

Parameters:

Name Type Description Default
api_key str

API key.

required
base_url Optional[str]

Base URL of Turbine API.

None

create_project(config)

Create a project.

Parameters:

Name Type Description Default
config ProjectConfig

Project configuration.

required

Returns: Project ID.

get_project(project_id)

Get project details by ID.

Parameters:

Name Type Description Default
project_id str

Project ID.

required

Returns: Project details.

get_projects()

Get list of projects owned by you.

Returns: List of projects owned by you.

search(project_id, query, limit=10)

Perform semantic search for documents in a project.

Parameters:

Name Type Description Default
project_id str

Project ID.

required
query str

Search query.

required
limit int

Maximum number of results to return.

10

Returns: List of search results.