ai-microcore 5.0.0.dev4__tar.gz → 5.0.0.dev5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/LICENSE +19 -19
  2. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/PKG-INFO +18 -15
  3. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/README.md +305 -304
  4. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/__init__.py +233 -233
  5. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/_env.py +240 -240
  6. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/_llm_functions.py +299 -299
  7. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/_prepare_llm_args.py +47 -47
  8. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/ai_func/__init__.py +277 -277
  9. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/ai_func/ai-func.json.j2 +10 -10
  10. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/ai_func/ai-func.pythonic.j2 +9 -9
  11. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/ai_func/ai-func.tag.j2 +34 -34
  12. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/ai_modules.py +18 -18
  13. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/configuration.py +531 -493
  14. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/embedding_db/__init__.py +183 -183
  15. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/embedding_db/chromadb.py +187 -187
  16. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/embedding_db/qdrant.py +262 -262
  17. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/file_cache.py +103 -103
  18. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/file_storage.py +375 -375
  19. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/images.py +5 -5
  20. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/interactive_setup.py +94 -82
  21. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/json_parsing.py +244 -244
  22. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/__init__.py +1 -1
  23. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/anthropic.py +139 -139
  24. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/google_genai.py +274 -205
  25. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/google_vertex_ai.py +149 -145
  26. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/local_llm.py +100 -100
  27. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/local_transformers.py +267 -267
  28. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/openai.py +350 -344
  29. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/llm/shared.py +40 -40
  30. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/lm_client.py +0 -0
  31. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/logging.py +186 -186
  32. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/mcp.py +421 -421
  33. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/message_types.py +124 -99
  34. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/metrics.py +42 -42
  35. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/presets.py +17 -17
  36. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/python.py +68 -68
  37. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/templating/__init__.py +0 -0
  38. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/templating/jinja2.py +28 -28
  39. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/text2speech/elevenlabs.py +73 -73
  40. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/tokenizing.py +79 -79
  41. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/types.py +58 -58
  42. ai_microcore-5.0.0.dev5/microcore/ui.py +195 -0
  43. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/utils.py +654 -651
  44. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/wrappers/__init__.py +0 -0
  45. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/wrappers/llm_response_wrapper.py +178 -205
  46. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/microcore/wrappers/prompt_wrapper.py +26 -26
  47. {ai_microcore-5.0.0.dev4 → ai_microcore-5.0.0.dev5}/pyproject.toml +62 -60
  48. ai_microcore-5.0.0.dev4/microcore/ui.py +0 -98
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2023—2025 Vitalii Stepanenko
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023—2026 Vitalii Stepanenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
20
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-microcore
3
- Version: 5.0.0.dev4
3
+ Version: 5.0.0.dev5
4
4
  Summary: # Minimalistic Foundation for AI Applications
5
5
  Keywords: llm,large language models,ai,similarity search,ai search,gpt,openai,framework,adapter
6
6
  Author-email: Vitalii Stepanenko <mail@vitaliy.in>
@@ -15,6 +15,8 @@ Classifier: License :: OSI Approved :: MIT License
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Intended Audience :: Developers
17
17
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Classifier: Development Status :: 5 - Production/Stable
18
20
  License-File: LICENSE
19
21
  Requires-Dist: openai>=0.28.1,<2
20
22
  Requires-Dist: python-dotenv~=1.1.0
@@ -29,17 +31,18 @@ Requires-Dist: docstring_parser~=0.16.0
29
31
  Requires-Dist: httpx~=0.28.1
30
32
  Project-URL: Source Code, https://github.com/Nayjest/ai-microcore
31
33
 
32
- <p align="right">
33
- <a href="https://github.com/Nayjest/ai-microcore/releases" target="_blank"><img src="https://img.shields.io/github/v/release/Nayjest/ai-microcore.svg" alt="Release Notes"></a>
34
- <a href="https://app.codacy.com/gh/Nayjest/ai-microcore/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade" target="_blank"><img src="https://app.codacy.com/project/badge/Grade/441d03416bc048828c649129530dcbc3" alt="Code Quality"></a>
35
- <a href="https://github.com/Nayjest/ai-microcore/actions/workflows/pylint.yml" target="_blank"><img src="https://github.com/Nayjest/ai-microcore/actions/workflows/pylint.yml/badge.svg" alt="Pylint"></a>
36
- <img src="https://raw.githubusercontent.com/Nayjest/ai-microcore/main/coverage.svg" alt="Code Coverage">
37
- <a href="https://github.com/Nayjest/ai-microcore/actions/workflows/tests.yml" target="_blank"><img src="https://github.com/Nayjest/ai-microcore/actions/workflows/tests.yml/badge.svg" alt="Tests"></a>
38
- <a href="https://github.com/Nayjest/ai-microcore/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/static/v1?label=license&message=MIT&color=d08aff" alt="License"></a>
39
- </p>
34
+ # AI MicroCore: A Minimalistic Foundation for AI Applications
40
35
 
36
+ <p align="center">
37
+ <a href="https://pypi.org/project/ai-microcore/" target="_blank"><img src="https://img.shields.io/github/v/release/Nayjest/ai-microcore.svg" alt="Release Notes"></a>
38
+ <a href="https://app.codacy.com/gh/Nayjest/ai-microcore/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade" target="_blank"><img src="https://app.codacy.com/project/badge/Grade/441d03416bc048828c649129530dcbc3" alt="Code Quality"></a>
39
+ <a href="https://github.com/Nayjest/ai-microcore/actions/workflows/pylint.yml" target="_blank"><img src="https://github.com/Nayjest/ai-microcore/actions/workflows/pylint.yml/badge.svg" alt="Pylint"></a>
40
+ <a href="https://github.com/Nayjest/ai-microcore/actions/workflows/tests.yml" target="_blank"><img src="https://github.com/Nayjest/ai-microcore/actions/workflows/tests.yml/badge.svg" alt="Tests"></a>
41
+ <img src="https://raw.githubusercontent.com/Nayjest/ai-microcore/main/coverage.svg" alt="Code Coverage">
42
+ <a href="https://github.com/vshymanskyy/StandWithUkraine/blob/main/README.md" target="_blank"><img src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/refs/heads/main/badges/StandWithUkraine.svg" alt="Stand With Ukraine"></a>
43
+ <a href="https://github.com/Nayjest/ai-microcore/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/static/v1?label=license&message=MIT&color=d08aff" alt="License"></a>
44
+ </p>
41
45
 
42
- # AI MicroCore: A Minimalistic Foundation for AI Applications
43
46
 
44
47
  **MicroCore** is a collection of python adapters for Large Language Models
45
48
  and Vector Databases / Semantic Search APIs allowing to
@@ -123,7 +126,7 @@ pip install google-generativeai
123
126
  ```bash
124
127
  pip install vertexai
125
128
  ```
126
- 📌Additonaly for working through [Vertex AI](https://cloud.google.com/vertex-ai) you need to
129
+ 📌Additionally for working through [Vertex AI](https://cloud.google.com/vertex-ai) you need to
127
130
  [install the Google Cloud CLI](https://cloud.google.com/sdk/docs/install)
128
131
  and [configure the authorization](https://cloud.google.com/sdk/docs/authorizing).
129
132
 
@@ -174,7 +177,7 @@ configure(
174
177
  EMBEDDING_DB_TYPE=EmbeddingDbType.QDRANT,
175
178
  EMBEDDING_DB_HOST="localhost",
176
179
  EMBEDDING_DB_PORT="6333",
177
- EMBEDDING_DB_SIZE=384, # dimentions quantity in used SentenceTransformer model
180
+ EMBEDDING_DB_SIZE=384, # dimensions quantity in used SentenceTransformer model
178
181
  EMBEDDING_DB_FUNCTION=SentenceTransformer("paraphrase-multilingual-MiniLM-L12-v2"),
179
182
  )
180
183
  ```
@@ -295,7 +298,7 @@ Performs code review by LLM for changes in git .patch files in any programming l
295
298
  #### [Image analysis](https://colab.research.google.com/drive/1qTJ51wxCv3VlyqLt3M8OZ7183YXPFpic) (Google Colab)
296
299
  Determine the number of petals and the color of the flower from a photo (gpt-4-turbo)
297
300
 
298
- #### [Banchmark LLMs on math problems](https://www.kaggle.com/code/nayjest/gigabenchmark-llm-accuracy-math-problems) (Kaggle Notebook)
301
+ #### [Benchmark LLMs on math problems](https://www.kaggle.com/code/nayjest/gigabenchmark-llm-accuracy-math-problems) (Kaggle Notebook)
299
302
  Benchmark accuracy of 20+ state of the art models on solving olympiad math problems. Inferencing local language models via HuggingFace Transformers, parallel inference.
300
303
 
301
304
  #### [Generate meme image](https://github.com/Nayjest/ai-microcore/blob/main/examples/generate_meme_image.py)
@@ -303,7 +306,7 @@ Simple example demonstrating image generation using [OpenAI GPT Image](https://p
303
306
 
304
307
 
305
308
  #### [Local inference with PyTorch / Transformers](https://github.com/Nayjest/ai-microcore/blob/main/examples/pytorch_transformers.py)
306
- Text generation using HF/Transformers model locally (example withQwen 3 0.6B).
309
+ Text generation using HF/Transformers model locally (example with Qwen 3 0.6B).
307
310
 
308
311
  #### [Other examples](https://github.com/llm-microcore/microcore/tree/main/examples)
309
312
 
@@ -332,5 +335,5 @@ Please see [CONTRIBUTING](https://github.com/Nayjest/ai-microcore/blob/main/CONT
332
335
  ## 📝 License
333
336
 
334
337
  Licensed under the [MIT License](https://github.com/Nayjest/ai-microcore/blob/main/LICENSE)
335
- © 2023 [Vitalii Stepanenko](mailto:mail@vitaliy.in)
338
+ © 2023–2026 [Vitalii Stepanenko](mailto:mail@vitaliy.in)
336
339