lennartpollvogt / ollama-instructor

Python library for the instruction and reliable validation of structured outputs (JSON) of Large Language Models (LLMs) with Ollama and Pydantic. -> Deterministic work with LLMs.
MIT License
67 stars 3 forks source link

Add multiple Pydantic BaseModels to ollama-instructor #4

Open lennartpollvogt opened 4 months ago

lennartpollvogt commented 4 months ago

Making it possible to provide a list of Pydantic BaseModels to chat_completion or chat_completion_with_stream

How? Make a request to ollama server for each Pydantic BaseModel in the list