IntelligenzaArtificiale e6dfc7ea96 Add files via upload
2023-04-19 17:13:03 +02:00
2023-04-19 12:07:37 +02:00
2023-04-19 12:07:37 +02:00
2023-04-19 15:29:48 +02:00
2023-04-19 12:46:20 +02:00
2023-04-19 15:13:54 +02:00
2023-04-19 09:59:16 +02:00
2023-04-19 17:13:03 +02:00
2023-04-19 09:55:09 +02:00
2023-04-19 09:12:11 +02:00
2023-04-19 09:14:04 +02:00
2023-04-19 12:47:11 +02:00
2023-04-19 15:34:41 +02:00
2023-04-19 12:49:57 +02:00
2023-04-19 17:13:03 +02:00
2023-04-19 12:08:10 +02:00
2023-04-19 17:13:03 +02:00
2023-04-19 17:13:03 +02:00

TODO , I NEED YOUR HELP

Hello everyone 🥰 ,

I wanted to start by talking about how important it is to democratize AI. Unfortunately, most new applications or discoveries in this field end up enriching some big companies, leaving behind small businesses or simple projects. One striking example of this is Autogpt, an autonomous AI agent capable of performing tasks.

image|690x441

Autogpt and similar projects like BabyAGI only work with paid APIs, which is not fair. That's why I tried to recreate a simpler but very interesting and, above all, open-source version of Autogpt that does not require any API and does not need any particular hardware.

I believe that by providing free and open-source AI tools, we can give small businesses and individuals the opportunity to create new and innovative projects without the need for significant financial investment. This will allow for more equitable and diverse access to AI technology, which is essential for advancing society as a whole.

HOW IT WORK

VIDEO DEMO

First, find everywhere for easily accessible and free websites or endpoints to use. Eventually, I came across this simple library: T3nsor. This library allows us to use GPT3.5 APIs completely for free. All credit to xtekky

After finding this free endpoint, I had to create a custom wrapper for my LLM using Langchain. This is because Langchain mostly offers LLM models that are only available for a fee. However, we were able to create a custom component based on the t3nsor.tech endpoint.

this is the code for the custome LLM wrapper :

from langchain.llms.base import LLM
from typing import Optional, List, Mapping, Any
import t3nsor

class gpt3NoInternet(LLM):
    messages: List[Mapping[str, Any]]
    
    @property
    def _llm_type(self) -> str:
        return "custom"
    
    def _call(self, prompt: str, stop: Optional[List[str]] = None) -> str:
        if stop is not None:
            raise ValueError("stop kwargs are not permitted.")
        
        t3nsor_cmpl = t3nsor.Completion.create(
            prompt   = prompt,
            messages = self.messages
        )

        response = t3nsor_cmpl.completion.choices[0].text
        
        self.messages.append({'role': 'user', 'content': prompt})
        self.messages.append({'role': 'assistant', 'content': response})
        
        return response
    
    @property
    def _identifying_params(self) -> Mapping[str, Any]:
        """Get the identifying parameters."""
        return {"messages": self.messages}


#llm = gpt3NoInternet(messages=[])

#print(llm("Never forget you are a Python Programmer and I am a Stock Trader."))

After creating our custom wrapper for the LLM, I stumbled upon a fascinating project called CAMEL. This project shares many similarities with Autogpt, and it can be easily integrated with our custom LLM. CAMEL aims to develop scalable techniques that enable autonomous cooperation among communicative agents while also providing insights into their "cognitive" processes.

CAMEL's unique approach focuses on creating agents that can understand and reason about natural language, as well as use it to interact with other agents. This type of agent could have a significant impact on many areas, including customer service, virtual assistants, and even education.

image|690x393

And finally I put it all together using streamlit and streamlit_chat_media

HOW TO RUN

image|690x441

LINK :

S
Description
Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
Readme MIT 36 MiB
Languages
Python 50.8%
Jupyter Notebook 49%
Dockerfile 0.2%