Section Blog technologique

Système RAG et TxtAi Partie 3 : Cas pratiques

Écrit par gbourdin le 22/01/2024
Catégorie :   Intelligence Artificielle
Dans une première partie, nous avons abordé la manière de dialoguer avec un modèle pour obtenir un dialogue basé sur des informations sur lesquelles il n'a pas été entraîné. Dans notre seconde partie, nous avons examiné la stratégie pour créer nos index et les stocker. Dans cette dernière partie, nous aborderons, à travers un cas pratique, comment créer un système RAG complet et in...

Système RAG et TxtAi Partie 2 : Bases de Données et Indexation Vectorielle

Écrit par gbourdin le 22/01/2024
Catégorie :   Intelligence Artificielle
Dans une première partie, nous avons abordé comment interagir avec un modèle pour obtenir un dialogue en fonction d'informations sur lesquelles il n'a pas été entraîné. Pour résumer, on ajoute au contexte les informations désirées. Mais alors, supposons que vous vouliez utiliser toute une base de connaissances ? Cela ferait beaucoup trop d'informations à ajouter au contexte. Pour cela, nous devons mettre en base de ...

Partitech Sonata Extra Bundle : Firewall

Écrit par tbourdin le 25/12/2023
Tags :   Sonata-page, symfony
The SonataExtraBundle provides an enhanced set of functionalities for managing firewall rules within the Sonata Admin environment. This bundle allows administrators to create and manage rules for filtering requests based on various criteria like stop words, IP addresses, and User Agents. Features Firewall Rule Management: Define and manage firewall rules to filter incoming requests. Support for Multiple Criteria: Filter requests based on stop words, IP addresses, and User Agents. Dynamic R...

Partitech Sonata Extra Bundle : Cookie Consent Block (GDPR)

Écrit par tbourdin le 09/12/2023
Tags :   sonata, Sonata-page, symfony
Overview The Cookie Consent Block is a customizable solution integrated into the Sonata Extra Bundle to manage user consent for cookies in compliance with GDPR regulations. It offers a flexible and user-friendly interface for cookie consent management. Screens Usage The Cookie Consent Block is designed to be easy to use and integrate. Add the block to your Sonata admin dashboard or any other part of your application where you need to display a cookie consent notice. Configuration Settings...

Système RAG et TxtAi Partie 1 : Transformer la Génération de Langage avec Intelligence

Écrit par gbourdin le 08/12/2023
Catégorie :   Intelligence Artificielle
Pour cette première partie de notre série d'articles, nous allons nous baser sur ce tutoriel afin de mettre en œuvre un processus de RAG. Mais qu'est-ce qu'un RAG ? Le RAG, ou "Retrieval-Augmented Generation", est une technique avancée en intelligence artificielle, spécifiquement dans le domaine du traitement du langage naturel (NLP), qui consiste à enrichir le processus de génération de texte en intégrant une phase de réc...

Llama.cpp le LLM à votre portée

Écrit par gbourdin le 05/12/2023
Catégorie :   Intelligence Artificielle
Llama CPP est un nouvel outil conçu pour exécuter des modèles de langage directement en C/C++. Cet outil est spécialement optimisé pour les processeurs Apple Silicon grâce à l'utilisation de la technologie ARM NEON et du framework Accelerate. Il offre également une compatibilité AVX2 pour les systèmes basés sur des architectures x86. Fonctionnant principalement sur le CPU, Llama CPP intègre aussi la capacit&e...

Introduction à txtai : Simplification et Puissance des LLMs pour les Développeurs

Écrit par gbourdin le 05/12/2023
Catégorie :   Intelligence Artificielle
Dans l'univers en constante évolution de l'intelligence artificielle et du traitement du langage naturel, txtai émerge comme un outil révolutionnaire, surtout pour ceux qui plongent dans le monde des modèles de langage à grande échelle (LLMs). Imaginez un pont entre vous et un éventail de LLMs puissants, où txtai joue le rôle d'intermédiaire facilitant, simplifiant et amplifiant vos interactions avec ces technologies compl...

Sonata Extra Bundle: Header Redirect Manager

Écrit par admin le 05/12/2023
Tags :   sonata, Sonata-page
Overview The Header Redirect Tool is designed to manage incoming traffic redirections within your application. It enables the configuration of redirection rules with various HTTP status codes to effectively handle different redirection scenarios. Screens List view : Detail view : Supported Redirection Status Codes 301 Moved Permanently: Indicates the resource has been moved to a new URL permanently. 302 Found: Suggests a temporary redirection to a different URL. 307 Temporary Red...

Sonata Extra Bundle: Activity log

Écrit par tbourdin le 05/12/2023
Tags :   sonata
Overview The Activity Log feature in the Sonata Extra Bundle is designed to monitor and log all activities within the admin site. It provides a comprehensive view of actions taken, resources involved, descriptions of activities, and the users who performed them. Features Action Type Display: Shows the type of action performed (e.g., create, update, delete). Resource Tracking: Identifies the resource that was affected by the action. Action Description: Provides a detailed description of ...

Partitech Sonata Extra Bundle : Media Library for Ckeditor

Écrit par tbourdin le 26/11/2023
Introduction Proper configuration of CKEditor is essential for its optimal functionality. This guide provides the steps to install a valid version of CKEditor and configure it to use the Media library in a Sonata project. Installation Addressing Invalid LTS License Key Error If you encounter the following error: [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#invalid-lts-license-key Install the specified version of C...

Partitech Sonata Extra Bundle : Integrating Gutenberg Editor

Écrit par tbourdin le 26/11/2023
Introduction Integrating the Gutenberg editor into Sonata involves using the 'Automatic Isolated block editor' library. This guide details the steps needed to install and configure the Gutenberg editor in your Sonata application. Screens Library Installation The Gutenberg editor relies on a library from 'Automatic Isolated Block Editor'. You can download the library using the following link: Automatic Isolated Block Editor Library Installation Steps Download and Install the Library...

Partitech Sonata Extra Bundle : Migrating Your Site from WordPress

Écrit par gbourdin le 26/11/2023
This guide provides a step-by-step process to migrate your WordPress site content to the Sonata Extra Bundle. Step 1: Importing Content Begin by importing your WordPress content using the following command bin/console sonata-extra:wordpress-importer --url https://www.domain.com --user wordpressUser --token "s2df5 df5df1 qsd8f yu65u wxc56 uj16 eret9" For detailed instructions on this command, refer to WordPress Importer Command. WordPress importer command After executing this command, your...

Partitech Sonata Extra Bundle : Configuring Custom 404 and 500 Error

Écrit par gbourdin le 26/11/2023
Introduction Customizing error pages (404 - Not Found and 500 - Internal Server Error) in your application can enhance user experience during unexpected situations. This guide will walk you through the process of setting up custom error pages in the SonataExtraBundle. Prerequisites Before proceeding, there are a few important things to note: Development Environment: Custom error pages are not displayed in the development environment. To see them in action, you need to set your application...

Partitech Sonata Extra Bundle : Layout setup

Écrit par gbourdin le 26/11/2023
Introduction Setting up your layout in SonataPage is a crucial step in creating a well-structured and visually appealing website. This guide will help you understand the layout configuration process within the SonataPage bundle. Prerequisite Before proceeding, make sure you have read the main documentation of SonataPage: Read the SonataPage Documentation Configuration Steps Step 1: Define Your Layout Configuration Start by defining your layout in a YAML configuration file. Here is an exampl...

Partitech Sonata Extra Bundle : WordPress-import

Écrit par gbourdin le 25/11/2023
Command Overview The sonata-extra:wordpress-importer command is designed for importing images, categories, posts, and tags from a WordPress site into your application. This command is key for integrating WordPress content with ease. Syntax sonata-extra:wordpress-importer --url=[WORDPRESS_SITE_URL] --user=[USERNAME] --token="[TOKEN]" Parameters --url: The URL of the WordPress site from which content is to be imported. --user: Your WordPress username. --token: The authentication token fo...

Partitech Sonata Extra Bundle : Translation create template CMD

Écrit par tbourdin le 25/11/2023
Overview PartitechSonataExtraBundle provides a convenient way to manage translations in Sonata Admin. This bundle includes two primary commands: sonata:extra:translation-create-template and sonata:extra:translation-import-template. These commands facilitate the creation and import of translations, optimizing the process and integrating with Chat GPT for efficient translation handling. Commands sonata:extra:translation-create-template Description This command prepares your content for transl...

Partitech Sonata Extra Bundle : Translation batch CMD

Écrit par tbourdin le 25/11/2023
The Sonata Extra Bundle provides a powerful feature for automatic translation through its Translation API functionality. This feature allows users to effortlessly translate text between different languages using AI-powered translation providers. Understanding Translation API The Translation API is a feature that leverages AI-powered translation services to provide automatic translation for text. By integrating different translation providers, users can translate text to various languages wi...

Partitech Sonata Extra Bundle : Translation Api

Écrit par tbourdin le 25/11/2023
The Sonata Extra Bundle provides a powerful feature for automatic translation through its Translation API functionality. This feature allows users to effortlessly translate text between different languages using AI-powered translation providers. Understanding Translation API The Translation API is a feature that leverages AI-powered translation services to provide automatic translation for text. By integrating different translation providers, users can translate text to various languages wi...

Partitech Sonata Extra Bundle : Sitemap

Écrit par gbourdin le 25/11/2023
Integration with PrestaSitemapBundle Our application automatically integrates with the "PrestaSitemapBundle" to generate a sitemap.xml file. This feature encompasses all image assets, article modules, and content pages within the application. The process is entirely automated and includes support for multilingual links. Extending Sitemap Functionality Users looking to further customize the sitemap, especially by adding additional resources from Symfony controllers, are encouraged to consult ...

Partitech Sonata Extra Bundle : Multilanguage for Admins

Écrit par admin le 25/11/2023
This bundle facilitates multilanguage support for admin interfaces. It comprises a trait for admin classes to manage multilanguage interfaces, and a trait for entities to create necessary fields. The implementation will add icons for the locales from sonata_page sites, enabling linkages with the records and managing all site languages. Screen List view of the translation in the selected language site Edit view of the translation in the selected language site Create a tranlsation from a...

Partitech Sonata Extra Bundle : Multilanguage on SonataPageBundle

Écrit par tbourdin le 25/11/2023
Overview The Sonata Extra Bundle enhances the SonataPageBundle by offering comprehensive multisite and multilanguage management capabilities. This feature allows tracking and switching between page translations in the front-end and supports a flexible multisite strategy. Screens List view : Detail view : Setting up Multisite with Multiple Languages Creating Multilanguage Sites Each site can support different locales. Use the following command to create the necessary sites: bin/console...

Partitech Sonata Extra Bundle : Assets Management

Écrit par tbourdin le 25/11/2023
The SonataExtra bundle introduces a flexible and powerful way to manage CSS and JavaScript assets in Sonata blocks. This feature allows developers to include external CSS and JS files, as well as inline styles and scripts, with ease and efficiency. Integration Loading Efficiency: The assets (CSS/JS) are loaded into the page only if the corresponding block is being used. This ensures efficient loading and avoids unnecessary overhead, particularly beneficial for performance optimization. Ass...

Partitech Sonata Extra Bundle : Language-switcher

Écrit par tbourdin le 25/11/2023
The Sonata Extra Bundle provides a feature-rich language switcher compatible with hybrid pages. This document outlines the steps to enable and utilize the language switcher in your Sonata application. Setting up the Language Switcher Integration with Hybrid Pages The language switcher can seamlessly integrate with your existing controllers and routes. Once you have a controller with a defined route, you can find and manage it in the Sonata page manager. The Sonata Extra Bundle allows custom...

Partitech Sonata Extra Bundle : Content-Security-Policy

Écrit par gbourdin le 25/11/2023
Introduction Content Security Policy (CSP) is a crucial security feature in web development, helping to prevent various types of attacks, such as Cross-Site Scripting (XSS) and data injection attacks. The Sonata-Extra bundle for Symfony provides an efficient way to implement and manage CSP in your application. Understanding Content Security Policy (CSP) CSP is a response header that allows you to control the resources your web page can load or execute. By specifying a list of trusted source...

Partitech Sonata Extra Bundle : blog

Écrit par tbourdin le 25/11/2023
Enhance your Sonata project with the integrated blog feature from Sonata Extra Bundle. Core Routes Integration Updating Blog Core Routes Integrate your site's pages with the blog controller by executing the update-core-route command: php bin/console sonata:page:update-core-routes --site={id} Executing this command synchronizes the Sonata Page with the following hybrid routes: Blog Category : /blog-category/{category} Blog Tag : /blog-tag/{tag} Blog Article : /blog-article/{article} T...