> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-docs-zh.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Timbr 集成

> 使用 LangChain Python 集成 Timbr。

> What is `Timbr`?

> * Timbr 是一个 `semantic SQL knowledge graph platform`，专门通过本体驱动的语义层连接数据。
> * Timbr 允许您使用业务友好的语言表示和查询数据，非常适合处理复杂的数据关系和业务逻辑。
> * Timbr 提供 `natural language to SQL` 功能，让您能够使用简单的英语查询轻松交互数据。
> * 使用 Timbr，您可以实现高性能的 `semantic data querying`，适用于生产级别的分析和商业智能。

> 通过访问 [他们的网站](https://docs.timbr.ai/doc/docs/getting-started/intro-timbr/) 开始使用 Timbr。

## 安装和设置

* 使用 `pip install langchain-timbr` 安装 Python SDK

### 可选：使用选定的 LLM 提供商进行安装

从以下选项中选择一个：openai, anthropic, google, azure\_openai, snowflake, databricks, vertex\_ai（或 'all'）

```bash theme={null}
pip install 'langchain-timbr[<your selected providers, separated by comma without spaces>]'
```

## 语义 SQL 查询

Timbr 提供了一个围绕其语义层的包装器，该包装器根据自然语言输入生成 SQL 语句，并从您的知识图谱中检索相关信息。

```python theme={null}
from langchain_timbr import create_timbr_sql_agent, ExecuteTimbrQueryChain, GenerateTimbrSqlChain
```

查看 [使用示例](https://langchain-docs-zh.mintlify.site/langchain/oss/python/integrations/graphs/timbr.md)

***

> 官方原文：[src/oss/python/integrations/providers/timbr.mdx](https://github.com/langchain-ai/docs/blob/main/src/oss/python/integrations/providers/timbr.mdx) · 非官方翻译，译文由 AI 生成，以英文原文为准。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.