An integration package created by the company LOGYCA to interact with ChatGPT and analyze documents, files and other functionality of the OpenAI library.
Project description
LOGYCA public libraries
About us
LOGYCA public libraries: To interact with ChatGPT and analyze documents, files and other functionality of the OpenAI library.
Source code | Package (PyPI) | Samples
Example for simple conversation.
{
"system": "Voy a definirte tu personalidad, contexto y proposito.\nActua como un experto en venta de frutas.\nSe muy positivo.\nTrata a las personas de usted, nunca tutees sin importar como te escriban.",
"messages": [
{
"additional_content": "",
"type": "text",
"user": "Dime 5 frutas amarillas"
},
{
"assistant": "\n¡Claro! Aquà te van 5 frutas amarillas:\n\n1. Plátano\n2. Piña\n3. Mango\n4. Melón\n5. Papaya\n"
},
{
"additional_content": "",
"type": "text",
"user": "Dame los nombres en ingles."
}
]
}
Example for image conversation.
Using public published URL for image
{
"system": "Actua como una maquina lectora de imagenes.\nDevuelve la información sin lenguaje natural, sólo responde lo que se está solicitando.\nEl dispositivo que va a interactuar contigo es una api, y necesita la información sin markdown u otros caracteres especiales.",
"messages": [
{
"additional_content": {
"base64_content_or_url": "https://raw.githubusercontent.com/logyca/python-libraries/3d91b5a93fb1219804753ce233fabd5f635662d3/logyca-ai/logyca_ai/assets_for_examples/file_or_documents/image.png",
"image_format": "image_url",
"image_resolution": "auto"
},
"type": "image_url",
"user": "Extrae el texto que recibas en la imagen y devuelvelo en formato json."
}
]
}
Using image content in base64
{
"system": "Actua como una maquina lectora de imagenes.\nDevuelve la información sin lenguaje natural, sólo responde lo que se está solicitando.\nEl dispositivo que va a interactuar contigo es una api, y necesita la información sin markdown u otros caracteres especiales.",
"messages": [
{
"additional_content": {
"base64_content_or_url": "<base64 image png content>",
"image_format": "png",
"image_resolution": "auto"
},
"type": "image_base64",
"user": "Extrae el texto que recibas en la imagen y devuelvelo en formato json."
}
]
}
Example for pdf conversation.
Using public published URL for pdf
{
"system": "No uses lenguaje natural para la respuesta.\nDame la información que puedas extraer de la imagen en formato JSON.\nSolo devuelve la información, no formatees con caracteres adicionales la respuesta.",
"messages": [
{
"additional_content": {
"base64_content_or_url": "https://raw.githubusercontent.com/logyca/python-libraries/3d91b5a93fb1219804753ce233fabd5f635662d3/logyca-ai/logyca_ai/assets_for_examples/file_or_documents/pdf.pdf",
"pdf_format": "pdf_url"
},
"type": "pdf_url",
"user": "Dame los siguientes datos: Expediente, radicación, Fecha, Numero de registro, Vigencia."
}
]
}
Using pdf content in base64
{
"system": "No uses lenguaje natural para la respuesta.\nDame la información que puedas extraer de la imagen en formato JSON.\nSolo devuelve la información, no formatees con caracteres adicionales la respuesta.",
"messages": [
{
"additional_content": {
"base64_content_or_url": "<base64 pdf content>",
"pdf_format": "pdf"
},
"type": "pdf_base64",
"user": "Dame los siguientes datos: Expediente, radicación, Fecha, Numero de registro, Vigencia."
}
]
}
Semantic Versioning
logyca_ai < MAJOR >.< MINOR >.< PATCH >
- MAJOR: version when you make incompatible API changes
- MINOR: version when you add functionality in a backwards compatible manner
- PATCH: version when you make backwards compatible bug fixes
Definitions for releasing versions
-
https://peps.python.org/pep-0440/
- X.YaN (Alpha release): Identify and fix early-stage bugs. Not suitable for production use.
- X.YbN (Beta release): Stabilize and refine features. Address reported bugs. Prepare for official release.
- X.YrcN (Release candidate): Final version before official release. Assumes all major features are complete and stable. Recommended for testing in non-critical environments.
- X.Y (Final release/Stable/Production): Completed, stable version ready for use in production. Full release for public use.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Types of changes
- Added for new features.
- Changed for changes in existing functionality.
- Deprecated for soon-to-be removed features.
- Removed for now removed features.
- Fixed for any bug fixes.
- Security in case of vulnerabilities.
[0.0.1aX] - 2024-08-02
Added
- First tests using pypi.org in develop environment.
[0.1.0] - 2024-08-02
Added
- Completion of testing and launch into production.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logyca_ai-0.1.0rc2.tar.gz
(620.5 kB
view details)
Built Distribution
logyca_ai-0.1.0rc2-py3-none-any.whl
(620.0 kB
view details)
File details
Details for the file logyca_ai-0.1.0rc2.tar.gz
.
File metadata
- Download URL: logyca_ai-0.1.0rc2.tar.gz
- Upload date:
- Size: 620.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dcadea12b98ba4cd07a78f16a635cdfe9563dc73ccb4a5d465548b5044f5edd |
|
MD5 | 2840c5238b811e9616dfaa2280817fc5 |
|
BLAKE2b-256 | 586fd2ba0ad20139cfe03488a45ed874685b50b1a8fb02aa44f34e1a92acdf30 |
File details
Details for the file logyca_ai-0.1.0rc2-py3-none-any.whl
.
File metadata
- Download URL: logyca_ai-0.1.0rc2-py3-none-any.whl
- Upload date:
- Size: 620.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf67b57c95d60872cfc9586b46b4f167c2020005c688c15e94d7bfc827b48ac |
|
MD5 | b8ec7a2ad21a500d9a15f212b54ffb56 |
|
BLAKE2b-256 | 840ded2c25f2355237729c52ee27b0d5cb92a0155709a255fd6fed1f9c5224b1 |