Ai-microcore

Latest version: v3.11.1

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

Scan your dependencies

Page 1 of 7

3.11.1

- Better support for ChromaDB 0.5.X+,
- New methods introduced: texts.collection_exists(collection_name) and texts.has_content(collection_name)

3.10.4

- storage.exists() Windws paths resolving bugfix

**Full Changelog**: https://github.com/Nayjest/ai-microcore/compare/v3.10.3...v3.10.4

3.10.3

- [Improvements in fixing broken json](https://github.com/Nayjest/ai-microcore/commit/6419c3690ee27183ef4f43f9fd5b6670b190f43f)
- [ui.ask_yn: consider alternative input options](https://github.com/Nayjest/ai-microcore/commit/51c3167f19e584d68ed3e7d48ec4dccab7f0d050)
**Full Changelog**: https://github.com/Nayjest/ai-microcore/compare/v3.10.2...v3.10.3

3.10.2

Changes:
- Logging fixes/improvements
- Autofixing dialogue structure for Anthropic API

**Full Changelog**: https://github.com/Nayjest/ai-microcore/compare/v3.10.1...v3.10.2

3.10.1

default logging refactoring / improvements:
- possibility to configure logging output method / request+response formatters separately
- fix color reset bug

**Full Changelog**: https://github.com/Nayjest/ai-microcore/compare/v3.10.0...v3.10.1

3.10.0

What's Changed
* **New feature** Tiktoken usage for estimating number of tokens in prompt / response, fitting semantic search results to target token number
Examples:
python
// limit semantic search results
mc.texts.search("test_collection", "query", n_results=20).fit_to_token_size(max_tokens=5, min_documents=3)
// extended string now have .to_tokens() and .num_tokens() methods:
prompt= mc.tpl('my_template.j2')
tokens = prompt.to_tokens(for_model="gpt-4")
prompt.num_tokens()
mc.llm(prompt).num_tokens()

For usage with any regular strings, see [microcore.tokenizing](https://github.com/Nayjest/ai-microcore/blob/main/microcore/tokenizing.py)
* ui improvements:
* ui.ask_yn() now have "default" argument and also handles KeyboardInterrupt
* new function: ui.warninig()

* Other minor fixes

**Full Changelog**: https://github.com/Nayjest/ai-microcore/compare/v3.9.1...v3.10.0

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.