ai-microcore 4.0.0.dev22__tar.gz → 4.1.0__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 (44) hide show
  1. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/LICENSE +19 -19
  2. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/PKG-INFO +26 -5
  3. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/README.md +297 -276
  4. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/__init__.py +189 -189
  5. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/_env.py +218 -207
  6. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/_llm_functions.py +177 -177
  7. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/_prepare_llm_args.py +31 -31
  8. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/ai_func/__init__.py +98 -98
  9. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/ai_func/ai-func.json.j2 +10 -10
  10. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/ai_func/ai-func.pythonic.j2 +9 -9
  11. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/ai_modules.py +18 -18
  12. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/configuration.py +457 -437
  13. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/embedding_db/__init__.py +183 -183
  14. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/embedding_db/chromadb.py +187 -186
  15. ai_microcore-4.1.0/microcore/embedding_db/qdrant.py +261 -0
  16. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/file_storage.py +261 -261
  17. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/interactive_setup.py +85 -85
  18. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/json_parsing.py +244 -244
  19. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/__init__.py +1 -1
  20. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/_openai_llm_v0.py +130 -130
  21. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/_openai_llm_v1.py +197 -197
  22. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/anthropic.py +130 -130
  23. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/google_genai.py +106 -106
  24. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/google_vertex_ai.py +145 -145
  25. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/local_llm.py +100 -100
  26. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/local_transformers.py +267 -267
  27. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/openai_llm.py +10 -10
  28. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/llm/shared.py +26 -26
  29. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/logging.py +107 -107
  30. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/mcp.py +361 -361
  31. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/message_types.py +79 -79
  32. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/metrics.py +42 -42
  33. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/python.py +68 -68
  34. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/templating/__init__.py +0 -0
  35. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/templating/jinja2.py +28 -28
  36. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/text2speech/elevenlabs.py +73 -73
  37. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/tokenizing.py +79 -79
  38. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/types.py +38 -38
  39. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/ui.py +92 -92
  40. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/utils.py +474 -474
  41. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/wrappers/__init__.py +0 -0
  42. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/wrappers/llm_response_wrapper.py +101 -101
  43. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/microcore/wrappers/prompt_wrapper.py +26 -26
  44. {ai_microcore-4.0.0.dev22 → ai_microcore-4.1.0}/pyproject.toml +59 -59
@@ -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—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
20
20
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-microcore
3
- Version: 4.0.0.dev22
3
+ Version: 4.1.0
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
- Author-email: Vitalii Stepanenko <mail@vitalii.in>
7
- Maintainer-email: Vitalii Stepanenko <mail@vitalii.in>
6
+ Author-email: Vitalii Stepanenko <mail@vitaliy.in>
7
+ Maintainer-email: Vitalii Stepanenko <mail@vitaliy.in>
8
8
  Requires-Python: >=3.10
9
9
  Description-Content-Type: text/markdown
10
10
  Classifier: Programming Language :: Python :: 3
@@ -32,7 +32,7 @@ Project-URL: Source Code, https://github.com/Nayjest/ai-microcore
32
32
  <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>
33
33
  <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>
34
34
  <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>
35
- <img src="https://github.com/Nayjest/ai-microcore/blob/main/coverage.svg" alt="Code Coverage">
35
+ <img src="https://raw.githubusercontent.com/Nayjest/ai-microcore/main/coverage.svg" alt="Code Coverage">
36
36
  <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>
37
37
  <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>
38
38
  </p>
@@ -142,8 +142,10 @@ See [transformers installation](https://huggingface.co/docs/transformers/install
142
142
  ### Vector Databases
143
143
 
144
144
  Vector database functions are available via `microcore.texts`.
145
+
146
+ #### ChromaDB
145
147
  Default vector database is [Chroma](https://www.trychroma.com/).
146
- In order to use vector database functions, you need to install the `chromadb` package:
148
+ In order to use vector database functions with ChromaDB, you need to install the `chromadb` package:
147
149
  ```bash
148
150
  pip install chromadb
149
151
  ```
@@ -157,6 +159,25 @@ configure(
157
159
  EMBEDDING_DB_PORT = 8000,
158
160
  )
159
161
  ```
162
+ #### Qdrant
163
+ In order to use vector database functions with Qdrant, you need to install the `qdrant-client` package:
164
+ ```bash
165
+ pip install qdrant-client
166
+ ```
167
+ Configuration example
168
+ ```python
169
+ from microcore import configure
170
+ from sentence_transformers import SentenceTransformer
171
+
172
+ configure(
173
+ EMBEDDING_DB_TYPE=mc.EmbeddingDbType.QDRANT,
174
+ EMBEDDING_DB_HOST="localhost",
175
+ EMBEDDING_DB_PORT="6333",
176
+ EMBEDDING_DB_SIZE=384, # dimentions quantity in used SentenceTransformer model
177
+ EMBEDDING_DB_FUNCTION=SentenceTransformer("paraphrase-multilingual-MiniLM-L12-v2"),
178
+ )
179
+ ```
180
+
160
181
 
161
182
  ## 🌟 Core Functions
162
183