Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CLI version of OpenAI's GPTs #517

Open
sigoden opened this issue May 18, 2024 · 2 comments
Open

The CLI version of OpenAI's GPTs #517

sigoden opened this issue May 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@sigoden
Copy link
Owner

sigoden commented May 18, 2024

The CLI version of OpenAI's GPTs (Bots)

Isn't combining roles and function calls the essence of GPTs?

Why GPTs/Bots

Related functions are grouped together, making them suitable for specific tasks and easy to share.

File Structure

<llm-functions-dir>
├── bots
│   └── bot1
│       ├── embeddings                  # RAG files
│       ├── functions.json              # Function declarations
│       └── index.yaml                  # Bot definition
└── bots.txt                            # List of bots

<aichat-bots-dir>
└── bots
    └── bot1
        ├── message.md                # Saved messages
        ├── rag.bin                   # Generated embeddings store
        └── sessions/                 # Saved sessions

Bot definition

name: ''
description:  ''
version: ''
instructions: ''
variables:
    - name: ''
      description: ''
conversation_starters:
    - ''

CLI

--bot <name>          Select a Bot
--list-bot            List all installed Bots

Chat-REPL

.bot <name>           Enter Bot Mode
.info bot             View the Bot Info
.exit bot             Exit Bot Mode

Bot config

bots:
  - name: todo-sh
    model: openai:gpt-4o
    temperature: null
    top_p: null

Everyone is welcome to discuss what's missing and its value.

@sigoden sigoden added the enhancement New feature or request label May 18, 2024
@blob42
Copy link

blob42 commented Jun 8, 2024

I think it would be great to have some sort of memory implementation for RAG on top of the knowledge ingestion.

I would imlement memory as a simple key,value with tag system.

knowledge.yaml

documents: (RAG ingestion)
 - path (dir or file)
 - ...

memory:
  location:
      value: (description of some location) 
      tags: birthplace,origin
  character:
      value: Foo is  (detailed character description ...)
      tags: main_character
  backstory:
      file: (path to file for ingestion)
      tags: ...
  

@sigoden
Copy link
Owner Author

sigoden commented Jun 10, 2024

#579 implment this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants