Ollama-instructor

Latest version: v0.5.2

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.3.0

What is new?
This new version contains an updated ollama_instructor_client.py. The code was refactored to get rid of redundancies within the two clients `OllamaInstructorClient` and `OllamaInstructorAsyncClient`. The new `OllamaBaseClient` contains the redundant code for the derived clients. The usage of this library is not affected.
The version of ollama-instructor was bumped to 0.3.0 and supports the new version of ollama (python) which is 0.3.0.
A new folder "blog" was added to the respository. There will be blog articles about my thoughts and ideas regarding `Ollama-instructor`. The README.md was updated to display this.

**List of announcements**:
- Refactoring the clients of `ollama-instructor` in ollama_instructor_client.py to make maintenance easier and reduce redundancies in code (see [commit](https://github.com/lennartpollvogt/ollama-instructor/commit/af5731bd6e6d9152f4659d098573fea08659c27c))
- Supporting new ollama version 0.3.0 (see [commit](https://github.com/lennartpollvogt/ollama-instructor/commit/af5731bd6e6d9152f4659d098573fea08659c27c))
- New "blog" folder for publishing thoughts and ideas regarding ollama-instructor and its usage (see [commit](https://github.com/lennartpollvogt/ollama-instructor/commit/7e04c0188c7dd9759f1b61c887a7118e171ff401))
- Updated README.md file (see [commit](https://github.com/lennartpollvogt/ollama-instructor/commit/1966d870d9635ac18c300a891eb362feb2e2ed58))
- Some smaller refactorings to docstrings of functions and tests (see [commit](https://github.com/lennartpollvogt/ollama-instructor/commit/af5731bd6e6d9152f4659d098573fea08659c27c))

**Full Changelog**: https://github.com/lennartpollvogt/ollama-instructor/compare/v0.2.0...v0.3.0

0.2.0

New Feature

- new class `OllamaInstructorAsyncClient` to support asynchronous operations (currently only `chat_completion` is supported)
- added tests for helper functions from `cleaner.py`
- added test for synchronous `chat_completion` and asynchronous `chat_completion`
- added description and example code for asynchronous `chat_completion` in [README.md](/README.md)
- updated [Roadmap.md](/Roadmap.md)
- updated version to 0.2.0

**Full Changelog**: https://github.com/lennartpollvogt/ollama-instructor/compare/v0.1.3...v0.2.0

0.1.3

- [README.md](https://github.com/lennartpollvogt/ollama-instructor/blob/main/README.md) was updated to mention the dependency of running Ollama server when using `ollama-instructor`
- New markdown file [Enhanced prompting within Pydantics BaseModel.md](https://github.com/lennartpollvogt/ollama-instructor/blob/main/docs/Enhanced%20prompting%20within%20Pydantics%20BaseModel.md) for enrich libraries documentation
- New markdown file [Features of ollama-instructor.md](https://github.com/lennartpollvogt/ollama-instructor/blob/main/docs/Features%20of%20ollama-instructor.md) to emphasize the libraries benefits.
- smaller refactoring on test collections for `chat_completion` and `chat_completion_with_stream`.

**Full Changelog**: https://github.com/lennartpollvogt/ollama-instructor/compare/v0.1.2...v0.1.3

0.1.2

- fix of __init__.py to provide usage of the library (was not working with the v0.1.1 release)
- Adjusted documentation OllamaInstructorClient and its methods chat_completion and chat_completion_with_stream
- Deleted method chat_completion_with_stream_old
- Adjusted documentation README.md and /docs/README.md for correct usage of library
- Adjusted validation_manger.py to correctly import json_parser.core.options


**Full Changelog**: https://github.com/lennartpollvogt/ollama-instructor/compare/v0.1.1...v0.1.2

0.1.1

With this release the version "0.1.1" gets published.

- README.md: specifying arguments the `OllamaInstructorClient` class and of its methods `chat_completion` and `chat_completion_with_stream` as well.
- __init__.py: providing the `OllamaInstructorClient` class and the methods of `cleaner.py`
- poetry: setting up poetry for python packaging and version control

**Full Changelog**: https://github.com/lennartpollvogt/ollama-instructor/commits/v0.1.1

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.