diff --git a/week4/community-contributions/ai_code_converter/codeXchange.ipynb b/week4/community-contributions/ai_code_converter/codeXchange.ipynb index 0640c6e..fc67bb7 100644 --- a/week4/community-contributions/ai_code_converter/codeXchange.ipynb +++ b/week4/community-contributions/ai_code_converter/codeXchange.ipynb @@ -4,96 +4,113 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## codeXchange AI: Transform Code with a Click!\n", + "# codeXchange AI: Transform Code with a Click!\n", "\n", "**Created by Blaise Alako**\n", "\n", - "Get ready to revolutionize your coding experience with **codeXchange AI**—a web-based Gradio app that converts code between programming languages in a flash! Powered by cutting-edge frontier and open-source LLMs, this tool is a game-changer for beginners diving into new languages, intermediates streamlining projects, and advanced users pushing the limits of innovation. Just paste or upload your code, choose your target language, and watch the magic unfold!\n", + "**codeXchange AI** is a web-based tool that simplifies converting code between different programming languages. It uses advanced open-source language models and cutting-edge AI to quickly and accurately translate your code. Supporting conversion across 17 programming languages, this tool is perfect whether you’re learning a new language or optimizing multi-language projects. With its user-friendly interface, you can even have your code documented automatically by simply ticking the documentation option—this adds appropriate docstrings following the native documentation style of the target language. Developed as part of the [LLM Engineering course](https://www.udemy.com/course/llm-engineering-master-ai-and-large-language-models/learn/lecture/46867711#content) by Ed. Donner.\n", "\n", - "**Why codeXchange AI?**\n", - "- **Effortless**: No downloads—just pure web-based magic.\n", - "- **Brilliant**: AI-driven conversions that nail accuracy.\n", - "- **Adaptable**: Add new languages or models with ease.\n", "\n", - "Explore the source code [codeXchange AI](https://github.com/alakob/ai_code_converter) and experience the thrill!\n", + "**Key Features of codeXchange AI:**\n", + "- **Effortless Conversion:** A fully web-based solution that requires no local installations.\n", + "- **AI-Driven Accuracy:** Harnessing advanced language models for reliable and contextually accurate code conversions.\n", + "- **Adaptable and Scalable:** Easily extend the tool to accommodate new languages and transformation models.\n", + "\n", + "Discover more details and explore the project on the [codeXchange AI GitHub repository](https://github.com/alakob/ai_code_converter).\n", "\n", "---\n", "\n", "### Table of Contents\n", - "1. [Explore the Interface](#explore-the-interface)\n", - "2. [Upload and Convert](#upload-and-convert)\n", - "3. [See the Results](#see-the-results)\n", - "4. [Unleash Advanced Features](#unleash-advanced-features)\n", - "5. [Performance That Wows](#performance-that-wows)\n", - "6. [Get Started Now](#get-started-now)\n", + "1. [Overview of codeXchange AI](#overview-of-codexchange-ai)\n", + "2. [Uploading Your Code](#uploading-your-code)\n", + "3. [Instant Conversion Process](#instant-conversion-process)\n", + "4. [Reviewing the Results](#reviewing-the-results)\n", + "5. [Advanced Customization Options](#advanced-customization-options)\n", + "6. [Performance and Optimization](#performance-and-optimization)\n", + "7. [Get Started with codeXchange AI](#get-started-with-codexchange-ai)\n", + "\n", + "---\n", + "\n", + "## Overview of codeXchange AI\n", + "\n", + "### A Seamless Code Transformation Tool\n", + "**codeXchange AI** delivers an accessible yet powerful solution for converting code between programming languages. Designed with both novice coders and experienced developers in mind, it highlights how modern AI can simplify and accelerate the code migration process. Immerse yourself in a world where conversion is not only accurate but also a valuable learning opportunity.\n", + "\n", + "![App Interface Overview](screenshots/codeXchange_1.png) \n", + "*Figure 1: The welcoming interface of codeXchange AI, inviting you to begin your transformative journey.*\n", "\n", "---\n", "\n", - "### Explore the Interface\n", + "## Uploading Your Code\n", "\n", - "#### A Sleek Starting Point\n", - "Step into the world of codeXchange AI with its stunningly simple interface, designed to make your coding journey a breeze!\n", + "### Prepare Your Source Code for Conversion\n", + "Experience the ease of preparing your code for a swift transformation. The intuitive upload section allows you to drag-and-drop your files or select from preloaded example snippets, making the initiation process both fast and user-friendly.\n", "\n", - "![Initial Interface](screenshots/codeXchange_1.png) \n", - "*Screenshot: The app’s clean starting screen, ready for your code.*\n", + "![Uploading Interface](screenshots/codeXchange_2.png) \n", + "*Figure 2: The upload area featuring convenient options to either insert your code directly or choose from examples.*\n", "\n", - "With options to upload files or pick example snippets, you’re just a click away from transforming your code.\n", + "This design caters to a variety of programming languages, ensuring your input is processed with high precision from the outset.\n", "\n", "---\n", "\n", - "### Upload and Convert\n", + "## Instant Conversion Process\n", "\n", - "#### Load Your Code with Ease\n", - "Whether you’re a beginner or a pro, uploading your code is a snap. Drag and drop a file, or select a preloaded snippet to kick things off.\n", + "### Transform Your Code in Real Time\n", + "Once your code is submitted, codeXchange AI activates its powerful engine. Simply select your target language and hit “Convert.” The application seamlessly translates your code, incorporating essential documentation to ensure clarity, usability, and maintainability.\n", "\n", - "![Loading Code](screenshots/codeXchange_2.png) \n", - "*Screenshot: The upload section with a dropdown for example snippets.*\n", + "![Conversion Process](screenshots/codeXchange_3.png) \n", + "*Figure 3: The real-time conversion stage, where your code is transformed with integrated documentation.*\n", "\n", - "Choose your input language, pick your target, and hit “Convert”—it’s that easy to bridge the language gap!\n", + "This process not only demystifies the syntactical shifts between languages but also serves as an insightful demonstration of AI's capabilities in practical coding scenarios.\n", "\n", "---\n", "\n", - "### See the Results\n", + "## Reviewing the Results\n", "\n", - "#### Witness the Transformation\n", - "Watch codeXchange AI work its magic! It converts your code with precision, adding helpful documentation to make the output crystal clear.\n", + "### Examine Your Newly Transformed Code\n", + "After conversion, the output is presented with meticulous attention to detail. The translated code retains its logic and documentation integrity, ensuring compatibility for both testing and production environments.\n", "\n", - "![Conversion Output](screenshots/codeXchange_3.png) \n", - "*Screenshot: A converted result with documentation, ready to run.*\n", + "![Conversion Result](screenshots/codeXchange_3.png) \n", + "*Figure 4: The output display, showcasing the fully converted code complete with insightful documentation.*\n", "\n", - "From Python to C++ or beyond, the app ensures your code is ready to shine in its new language.\n", + "This clear and organized presentation guarantees that your new code is production-ready and easily maintainable.\n", "\n", "---\n", "\n", - "### Unleash Advanced Features\n", + "## Advanced Customization Options\n", "\n", - "#### Power Up Your Workflow\n", - "For those who love to tinker, codeXchange AI offers exciting customization! Select different models, adjust the “Temperature” for creative flair, and even add new languages to the mix.\n", + "### Tailor Your Conversion Experience\n", + "For users who wish to fine-tune their conversion settings, codeXchange AI offers a suite of advanced options. Customize parameters such as the AI model selection and “Temperature” settings to introduce creative variations in the output. Additionally, the platform readily supports the addition of new languages and LLM models as your needs evolve.\n", "\n", - "![Advanced Options](screenshots/codeXchange_3_1.png) \n", - "*Screenshot: Interface showcasing model selection, temperature slider, and more.*\n", + "![Advanced Settings](screenshots/codeXchange_3_1.png) \n", + "*Figure 5: The advanced settings panel featuring options for model selection, temperature control, and further customization.*\n", "\n", - "Download your converted code with a single click and take your projects to the next level!\n", + "This flexibility ensures that the tool can be precisely adapted to your development environment and evolving project requirements.\n", "\n", "---\n", "\n", - "### Performance That Wows\n", + "## Performance and Optimization\n", "\n", - "#### Speed That Impresses\n", - "codeXchange AI doesn’t just convert—it optimizes! Check out the performance boost when running your code in a new language, with execution times that’ll leave you amazed.\n", + "### Experience Lightning-Fast Conversions\n", + "codeXchange AI not only transforms your code but also optimizes it for superior performance. Witness remarkable enhancements in execution speed across languages as the tool refines the code translation process. These performance metrics clearly demonstrate the efficiency gains achieved through AI-powered conversion.\n", "\n", - "![Performance Results](screenshots/codeXchange_4.png) \n", - "*Screenshot: Execution results highlighting speed improvements.*\n", + "![Performance Metrics](screenshots/codeXchange_4.png) \n", + "*Figure 6: Detailed performance metrics showcasing execution time improvements across different programming languages.*\n", "\n", - "From 31.49 seconds in Python to just 2.32 seconds in C++—see the difference for yourself!\n", + "With conversion times reduced dramatically, you’re empowered to focus on innovation and development without delay.\n", "\n", "---\n", "\n", - "### Get Started Now\n", + "## Get Started with codeXchange AI\n", "\n", - "Ready to transform your coding game? Jump into [codeXchange AI source code](https://github.com/alakob/ai_code_converter) Convert, run, and download your code in seconds. Whether you’re just starting out, managing complex projects, or innovating at an advanced level, this app is your ultimate coding companion.\n", + "### Embark on Your Code Transformation Journey\n", + "Are you ready to enhance your coding skills and explore new possibilities? Dive into the full source code and setup instructions on [GitHub – codeXchange AI](https://github.com/alakob/ai_code_converter). Whether you're experimenting with new languages, updating legacy projects, or pushing the frontiers of innovation, exploring codeXchange AI will expand your understanding of AI-driven code transformation.\n", + "\n", + "---\n", "\n", - "---\n" + "### Acknowledgments\n", + "Special thanks to Ed. Donner for his transformative [LLM Engineering course](https://www.udemy.com/course/llm-engineering-master-ai-and-large-language-models/learn/lecture/46867711#content) that inspired this project.\n", + "\n" ] } ], diff --git a/week5/community-contributions/docuSeekAI/doc_upload.png b/week5/community-contributions/docuSeekAI/doc_upload.png new file mode 100644 index 0000000..0e36245 Binary files /dev/null and b/week5/community-contributions/docuSeekAI/doc_upload.png differ diff --git a/week5/community-contributions/docuSeekAI/docuSeekAI.ipynb b/week5/community-contributions/docuSeekAI/docuSeekAI.ipynb new file mode 100644 index 0000000..fb49ebd --- /dev/null +++ b/week5/community-contributions/docuSeekAI/docuSeekAI.ipynb @@ -0,0 +1,101 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# DocuSeek AI: Secure and Intelligent Document Retrieval\n", + "\n", + "**Created by Blaise Alako**\n", + "\n", + "**DocuSeek AI** is a tool designed to enable secure and intelligent interaction with private documents. It utilizes a Retrieval-Augmented Generation (RAG) system, combining Large Language Models (LLMs) and vector search to provide accurate, context-aware responses based on uploaded content. Developed as part of [LLM Engineering course](https://www.udemy.com/course/llm-engineering-master-ai-and-large-language-models/learn/lecture/46867711#content) by Ed. Donner, it demonstrates practical applications of AI in document processing and data privacy, offering a hands-on example of secure, AI-driven data retrieval.\n", + "\n", + "**Key Features of DocuSeek AI:**\n", + "- **Privacy-Focused**: All data is processed locally, ensuring your documents remain private.\n", + "- **Intelligent**: Leverages LLMs and vector search for precise, contextually relevant answers.\n", + "- **Versatile**: Supports multiple file formats and provides interactive visualizations of data relationships.\n", + "\n", + "Explore the source code and setup instructions at [DocuSeek AI GitHub](https://github.com/alakob/ai_private_document_retriever) to experiment with RAG systems and LLM applications in document retrieval.\n", + "\n", + "---\n", + "\n", + "### Table of Contents\n", + "1. [Overview of DocuSeek AI](#overview-of-docuseek-ai)\n", + "2. [Document Upload and Processing](#document-upload-and-processing)\n", + "3. [Querying Your Documents](#querying-your-documents)\n", + "4. [Visualizing Data Relationships](#visualizing-data-relationships)\n", + "5. [Setup and Exploration](#setup-and-exploration)\n", + "\n", + "---\n", + "\n", + "## Overview of DocuSeek AI\n", + "\n", + "### An AI-Powered Document Retrieval Tool\n", + "**DocuSeek AI** provides an intuitive interface for users to interact with their private documents using AI technology. It is designed to be accessible to users of all levels while showcasing advanced concepts such as Retrieval-Augmented Generation (RAG) and vector-based search.\n", + "\n", + "![Interface Screenshot](docuseek1.png) \n", + "*Figure 1: The main interface of DocuSeek AI, where users begin their document exploration journey.*\n", + "\n", + "The tool integrates seamlessly with local files, ensuring data privacy and security throughout the process.\n", + "\n", + "---\n", + "\n", + "## Document Upload and Processing\n", + "\n", + "### Preparing Your Files for Intelligent Querying\n", + "To begin, users upload their documents in supported formats (e.g., PDFs, XLSX, PPTX, HTML, PNG, JPEG, TIFF, BMP, JSON, USPTO XML, JATS XML, Markdown, SdciiDoc, text files). DocuSeek AI processes these files locally, transforming them into a searchable knowledge base optimized for AI-driven querying.\n", + "\n", + "![Upload Screenshot](doc_upload.png) \n", + "*Figure 2: The document upload section, displaying supported formats and processing status.*\n", + "\n", + "This step ensures that your content is ready for accurate and efficient retrieval without compromising privacy.\n", + "\n", + "---\n", + "\n", + "## Querying Your Documents\n", + "\n", + "### Retrieving Contextually Relevant Answers\n", + "Once your documents are processed, you can query the system by asking questions related to your content. DocuSeek AI’s RAG system retrieves precise, context-rich answers directly from your uploaded files.\n", + "\n", + "![Query Screenshot](docuseek3.png) \n", + "*Figure 3: The query interface, where users input questions and receive detailed, relevant responses.*\n", + "\n", + "This feature demonstrates the power of combining LLMs with vector search to deliver tailored responses, making it ideal for educational and professional use cases.\n", + "\n", + "---\n", + "\n", + "## Visualizing Data Relationships\n", + "\n", + "### Understanding Connections Within Your Documents\n", + "**DocuSeek AI** enhances document exploration by generating interactive visualizations that reveal relationships and patterns within your data. This feature is particularly useful for identifying key concepts and their connections.\n", + "\n", + "![Visualization Screenshot](docuseek4.png) \n", + "*Figure 4: A visualization highlighting relationships and concepts extracted from the documents.*\n", + "\n", + "These visualizations provide a deeper understanding of your content, making complex information more accessible and actionable.\n", + "\n", + "---\n", + "\n", + "## Setup and Exploration\n", + "\n", + "### Experiment with DocuSeek AI\n", + "To explore **DocuSeek AI** and its underlying technology, clone the repository from [DocuSeek AI GitHub](https://github.com/alakob/ai_private_document_retriever) and follow the setup instructions. This provides an opportunity to:\n", + "- Experiment with RAG systems and vector search.\n", + "- Understand LLM applications in secure document retrieval.\n", + "- Customize the tool for specific use cases or educational projects.\n", + "\n", + "---\n", + "\n", + "### Acknowledgments\n", + "Special thanks to Ed. Donner for his transformative [LLM Engineering course](https://www.udemy.com/course/llm-engineering-master-ai-and-large-language-models/learn/lecture/46867711#content) that inspired this project.\n" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/week5/community-contributions/docuSeekAI/docuseek1.png b/week5/community-contributions/docuSeekAI/docuseek1.png new file mode 100644 index 0000000..ab1d101 Binary files /dev/null and b/week5/community-contributions/docuSeekAI/docuseek1.png differ diff --git a/week5/community-contributions/docuSeekAI/docuseek2.png b/week5/community-contributions/docuSeekAI/docuseek2.png new file mode 100644 index 0000000..239caa6 Binary files /dev/null and b/week5/community-contributions/docuSeekAI/docuseek2.png differ diff --git a/week5/community-contributions/docuSeekAI/docuseek3.png b/week5/community-contributions/docuSeekAI/docuseek3.png new file mode 100644 index 0000000..89927b3 Binary files /dev/null and b/week5/community-contributions/docuSeekAI/docuseek3.png differ diff --git a/week5/community-contributions/docuSeekAI/docuseek4.png b/week5/community-contributions/docuSeekAI/docuseek4.png new file mode 100644 index 0000000..48949cc Binary files /dev/null and b/week5/community-contributions/docuSeekAI/docuseek4.png differ