An open API service indexing awesome lists of open source software.

https://github.com/efenstakes/yoda-ai-python

An AI chatbot API with Python, Langchain and FastAPI.
https://github.com/efenstakes/yoda-ai-python

api fastapi langchain langchain-python llm python3

Last synced: 2 months ago
JSON representation

An AI chatbot API with Python, Langchain and FastAPI.

Awesome Lists containing this project

README

          

# Yoda AI: Your Wise Companion

Welcome to Yoda AI, your ultimate AI companion! Yoda is designed to be your go-to solution for a wide range of tasks, from answering questions and providing insights to offering assistance and entertainment. In this document, we'll introduce you to the exciting world of Yoda AI and guide you through getting started.

## Introduction

Yoda AI is a cutting-edge artificial intelligence designed to enhance your daily life. It combines natural language understanding, machine learning, and a vast knowledge base to assist you with a wide range of tasks. Whether you need answers to questions, want to engage in meaningful conversations, or simply seek entertainment, Yoda AI has you covered.

## Key Features

1. Conversational AI: Hold engaging conversations with Yoda AI, just like chatting with a friend.

2. Knowledge Base: Access a wealth of information, facts, and insights across various domains.

3. Personal Assistant: Set reminders, create to-do lists, and get weather updates.

4. Entertainment: Enjoy jokes, riddles, and even some wisdom from the wise Yoda himself.

5. Customization: Tailor Yoda AI to your preferences and needs.

## Tech Used

1. Python: Yoda AI's backend is powered by Python. Python is leading in the development of AI and Machine Learning platforms.

2. FastAPI: FastAPI is a minimal and flexible Python web application framework, it's used for building the API endpoints that power Yoda AI's interactions. It simplifies routing, middleware integration, and request handling.

7. Langchain, LLMs & OpenAI: I started by using OpenAI to build the AI and I will include a branch called llm which has code for the same using Langchain and LLMs.

# Running
To run this server, you need to clone the repo to your local environment.

```sh
git clone https://github.com/efenstakes/yoda-ai-python
```

Navigate to the folder.

```sh
cd ./yoda-ai-python
```

Install dependencies
```sh
pip install -r requirements.txt
```

Run the fastAPI yoda server with:
```sh
uvicorn main:app --reload
```

Or:

```sh
python3 main.py
```

Happy building :(.

## Extras
I build a similar API to this in Golang and Node.js. You can find it here in my github.

## Contact
If you wish to contact me, use my email efenstakes101@gmail.com.