Open aidadiaz9 opened 11 months ago
General
pynostr
Backend - Relay-Abbot
Backend - Abbot
/nostrdm <note_kind_4>
nostr_dm
function should parse note, create embeddings, store in pinecone, pull similarity data, send to OpenAI, use Nostr
class functions to construct a response API call to Relay-Abbot to broadcast to relayBackend - Nostr
Nostr
class to construct a note kind 4 and sign it (nostr/nostr.py
)Taking new direction based on discussions with @w3irdrobot. We will be building our own API to run on top of the Telegram Abbot that will handle requests from a Nostr Abbot server. Nostr Abbot will be our nostr relay listener.
General
- Need to create notes kind 4 for "encrypted direct message"
- Follow spec defined for NIP-04
- Use functionality from
pynostr
Backend - Relay-Abbot
- Use Relay-Abbot (see API crossplatform POC #3) to store and forward notes kind 4 that are directed to abbot
- POST to Abbot via telegram API with new slash command in "text" field
Backend - Abbot
- Define how to parse this from telegram
- Could use a new slash command handler or some kind of message filter
- Slash command example:
/nostrdm <note_kind_4>
nostr_dm
function should parse note, create embeddings, store in pinecone, pull similarity data, send to OpenAI, useNostr
class functions to construct a response API call to Relay-Abbot to broadcast to relayBackend - Nostr
- Add functions to
Nostr
class to construct a note kind 4 and sign it (nostr/nostr.py
)
Updating this to align with new direction.
General
Backend - AbbotNostr
history
from mongo and feed to OpenAI chatCompletion{"role": "assistant", "content": "response from GPT"}
add to history list and update DBDue date = 10/17/23
Due date:
history
key-value pair from DM document and send to OpenAI chatCompletionhistory
object {"role": "assistant", "content": "response from GPT"}
history
list and update DM document in DB
Due date = 10/17/23