Giter Club home page Giter Club logo

apocas / restai Goto Github PK

View Code? Open in Web Editor NEW
345.0 8.0 70.0 33.13 MB

RestAI is an AIaaS (AI as a Service) open-source platform. Built on top of LlamaIndex, Ollama and HF Pipelines. Supports any public LLM supported by LlamaIndex and any local LLM suported by Ollama. Precise embeddings usage and tuning.

Home Page: https://apocas.github.io/restai/

License: Apache License 2.0

Makefile 0.54% Python 98.53% Dockerfile 0.93%
embeddings langchain llm openai python fastapi rag llama openaiapi llamaindex llava stable-diffusion transformers ollama

restai's Issues

Please add support for LiteLLM to this project

This project is pretty great BUT we need more options to use different LLM's.You don't have to worry about creating a solution which supports 100+ LLM easily as LiteLLM is another foss project which is capable of doing this task for you.
Project LiteLLM link - https://github.com/BerriAI/litellm
You can study there project and see how it can be implemented in this project like you implemented support for ollama I believe similarly you can do it for LiteLLM which will be big win for the project as many will be easily able to use many more LLM easily which everyone wants and project will require 3 major parameters from user like base url,model name,api key that's all and with open ai api general structure it can query and give back result for the query.Many big projects have started adding support for this project in there project to make things advanced in easier way so study it and after that if you have any query you can ask them they are pretty responsive plus if u want to know more about my personal experience of using it with other great projects like flowise then I can tell you that too in detail.

Alternative way to import OPENAI?

I have a deployed openai service in azure and I want to utilize it, is there anyway to import besides using OPENAI_API_KEY ?

AZURE_OPENAI_API_ENDPOINT=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_API_VERSION=
AZURE_OPENAI_API_INSTANCE_NAME=
AZURE_OPENAI_API_DEPLOYMENT_NAME=
AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME=

their format looks like this. Thanks!

a question and suggestion

A very good project.
I have a question, i see a docker-compose.yml located in the root directory. Is it means can directly launched it to run project without the need for other dependency operations.
Also, i think the document is worth improving, like ollama docs/ ๐Ÿ˜€

Agentic RAG and Advanced Retrieval Strategies

One of the growing and important discussions in the RAG Community now is Agent. It would be great to see Agent Implementation in this project and also some advanced Retrieval like Automerging Retrieval in llama index.

Inquiry About Chat Loading Mechanism in ReAct Agent Code

Hi,

I was going through your recent ReAct agent code. On my computer, this code cannot load chat history:

chat = self.brain.memories.loadMemory(project.model.name).loadChat(chatModel)

Could you please explain how this chat loading works in your code? Additionally, are you able to give the agent chat history when the agent is answering the next question?

Thank you!

Please provide requirements. txt

The requirements.txt file is a text file used for Python projects, which lists all the required dependencies and their version numbers for the project.
image
llama_index-0.10.14 is wrong
from llama_index.embeddings.langchain import LangchainEmbedding
from llama_index.postprocessor.colbert_rerank import ColbertRerank

Discussion regarding contributing in the project

Hi @apocas,
I found the project very helpful and want to add some improvement to the project if you agree with the change.

Issues

  1. Loading environment variable is not organized.
  2. docker-compose file is not configured properly to run the project.

I want to add those changes if you think those change will improve the project.

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.