Reuse in Rust, Python (e.g. LangChain) code?

There is a lot of existing Python code working with LLMs (e.g. LangChain, but not only).

I wondered if maybe to allow rolling-rewrites to Rust , or just simple reuse of some Python code in Rust projects, we should consider some mixed approaches?

E.g. using Py03 ( GitHub - PyO3/pyo3: Rust bindings for the Python interpreter ; Rust Zürichsee, April: Gerhard Bräunlich - PyO3 and Rust in action - YouTube ) or other Rust<=>Python bindings or interpreters ?

1 Like

Are you aware of the OpenAI cookbook on GitHub?

It has no Rust examples.

https://github.com/search?q=repo%3Aopenai%2Fopenai-cookbook+language%3ARust+&type=code

2 Likes