Giter VIP home page Giter VIP logo

generativeai's Introduction

Generative AI with LlamaIndex and Spring AI

This project demonstrates how to use LlamaIndex and Spring AI to create generative AI applications, such as chatbots, document summarizers, and content generators.

LlamaIndex is a Python library that enables you to leverage pre-trained language models and augment them with custom data sources, such as documents, databases, or APIs. Spring AI is a Java framework that provides a Spring-friendly API and abstractions for developing AI applications, such as ChatClient, VectorStore, and DocumentReader.

Installation

To install this project, you need to have Python 3.8+, Java 11+, and Maven 3.6+ installed on your system. Then, follow these steps:

  • Clone this repository: git clone https://github.com/PraveenKS30/GenerativeAI.git

Usage

To run this project, you need to have an OpenAI API key.Set the following environment variables:

  • OPENAI_API_KEY: Your OpenAI API key

You can also use a .env file to store these variables.

To start the Spring Boot application, run: mvn spring-boot:run

To start the Streamlit web interface, run: streamlit run app.py

You can then access the web interface at http://localhost:8501 and interact with the generative AI application.

Demo

Here is a YouTube video that shows the generative AI application in action:

[https://www.youtube.com/playlist?list=PLO66QfE8gWT3L3SCxIhXxVnKY8153kZJB]

You can also watch these YouTube videos to learn more about LlamaIndex and Spring AI.

generativeai's People

Contributors

praveenks30 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.