<p align="center">
<img src="https://yellow-cdn.veclightyear.com/ab5030c0/234217a2-3b76-4745-a430-b91ccf77dfe9.png"/>
</p>
<p align="center">
<b>txtai的Rust客户端</b>
</p>
<p align="center">
<a href="https://github.com/neuml/txtai.rs/releases">
<img src="https://yellow-cdn.veclightyear.com/ab5030c0/a8b87560-ccfb-4cd1-9ae4-1ad9cb3fe63c.svg?style=flat&color=success" alt="版本"/>
</a>
<a href="https://github.com/neuml/txtai.rs/releases">
<img src="https://yellow-cdn.veclightyear.com/ab5030c0/788fe95e-3bab-4c39-874c-08a32a66e348.svg?style=flat&color=blue" alt="GitHub发布日期"/>
</a>
<a href="https://github.com/neuml/txtai.rs/issues">
<img src="https://yellow-cdn.veclightyear.com/ab5030c0/0598714a-f34b-4e52-b58a-4cac0cae2ec9.svg?style=flat&color=success" alt="GitHub问题"/>
</a>
<a href="https://github.com/neuml/txtai.rs">
<img src="https://yellow-cdn.veclightyear.com/ab5030c0/d50a14b0-8648-4cfd-bace-11c894630613.svg?style=flat&color=blue" alt="GitHub最后提交"/>
</a>
</p>
txtai是一个用于语义搜索、LLM编排和语言模型工作流的全in-one嵌入式数据库。
该仓库包含txtai API的Rust绑定。
安装
在项目的Cargo.toml
文件中添加以下行:
[dependencies]
txtai = { version = "7.3" }
tokio = { version = "0.2", features = ["full"] }
这将添加txtai作为依赖项,同时由于txtai使用异步IO,还需要添加tokio。
示例
examples目录包含一系列示例,概述了txtai的功能。请参阅以下示例列表。
txtai.rs连接到txtai api实例。有关如何启动新的api实例的详细信息,请参阅此链接。
一旦api实例运行,请执行以下操作以运行示例。
git clone https://github.com/neuml/txtai.rs
cd txtai.rs/examples/demo
cargo run