5
Recommendations for a lightweight Python LLM framework for a webapp?
(palaver.p3x.de)
Welcome to LocalLLaMA! Here we discuss running and developing machine learning models at home. Lets explore cutting edge open source neural network technology together.
Get support from the community! Ask questions, share prompts, discuss benchmarks, get hyped at the latest and greatest model releases! Enjoy talking about our awesome hobby.
As ambassadors of the self-hosting machine learning community, we strive to support each other and share our enthusiasm in a positive constructive way.
Ollama's Python API works well and there's a lot of examples. However, I've not gotten the Ollama REST API to work, the response doesn't unpack into json for me.
Just design the rest of your system so that it doesn't have to know anything about the implementation (only prompts and responses) and you should be able to easily replace the LLM part later.