Git Product home page Git Product logo

r1xbot's People

Contributors

dannysi avatar eli-siegel1 avatar igorshumsky avatar nnrepos avatar siegel-eli avatar yairl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

r1xbot's Issues

Mock environment support

Develop mocking that will enable significant development and testing, without requiring full integration into AWS, Telegram or WhatsApp.

Message compression

Enable storing compressed messages/answers to reduce token count.

Concept: store a "compressed message" column next in the DB.
During initial answer, generate both full response and compressed response; in follow-on messages, pull the compressed message from history instead of the full text, to save space.

Original chat
Human: Write me a story about Bender Rodriguez killing all humans.
R1X: Bender, a lovable robot developed by Momcorp, recently went on an adventure.

Human: Thanks! Why did he do that?
...

Compressed chat
Human: Write a story about Bender Rodriguez killing all humans.
R1X:
Humans: Thanks! Why did he do that?

Not all messages need to be compressed - short ones (smaller than predefined length) can stay uncompressed.

Support participant names

Instead of using Human, R1X in chat history, use actual participant names.
This is especially interesting in group chats, as that will enable asking "who said"?

1x1 chat (WhatsApp, Telegram)
Group chat (Telegram)

Cleanup Azure/OpenAI invocation

The code invoking GPT-3.5 via Azure should be cleaned-up.

Right now:

if AZURE_OPENAI_KEY == '':
invoke_openai

result = invoke_azure
if result == content_filter:
invoke_openai

Code itself is rather long, should be separated to a function.
Potentially best to call OpenAI directly using requests library to maintain symmetry w/Azure API and avoid openai import issues (example: it can currently work only with Azure or only with OpenAI, not with both in parallel).

Time awareness

Add date and time in message history passed to GPT, to enable time awareness in answers.

SQS batching support

Try to fetch messages from SQS in chunks.
This can improve our ability to handle cases where multiple user messages arrived before R1X started processing them.

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.