MCPcopy Create free account

hub / github.com/Mayurkoli8/ChatDouble / functions

Functions14 in github.com/Mayurkoli8/ChatDouble

↓ 11 callersFunctionsave_chat_history_cloud
Save chat history to Firestore under: users/{user}/chats/{bot}
firebase_db.py:136
↓ 3 callersFunctionget_user_bots
Retrieve all bots for a given user. Returns a list of dicts [{name, file, persona?}, ...]
firebase_db.py:65
↓ 2 callersFunctionbuild_faiss_for_bot
Returns (embed_model, faiss_index, bot_lines list) Cached per content string.
app.py:222
↓ 2 callersFunctionget_bot_file
Get the bot's full text content and optional persona. Returns (file_text, persona)
firebase_db.py:82
↓ 2 callersFunctionlogin_user
(username: str, password: str)
firebase_db.py:26
↓ 2 callersFunctionregister_user
Register a new user with hashed password. Returns False if username already exists.
firebase_db.py:12
↓ 1 callersFunctionadd_bot
Store bot data inside Firestore: users/{username}/bots/{bot_name} Supports optional 'persona' (personality description).
firebase_db.py:48
↓ 1 callersFunctiondelete_bot
Delete a bot and its data from Firestore.
firebase_db.py:117
↓ 1 callersFunctionextract_bot_lines
Extract only that person's messages from WhatsApp-style chat exports. Supports formats like: 12/04/2023, 5:22 pm - Raykay: message
app.py:161
↓ 1 callersFunctiongenerate_persona
Ask Gemini for a short persona description. Keep temperature low for deterministic output. Tolerant if no genai client is configured.
app.py:190
↓ 1 callersFunctionload_chat_history_cloud
Load chat history from Firestore. Returns an empty list if no history found.
firebase_db.py:146
↓ 1 callersFunctionprocess_pending_generation
()
app.py:786
↓ 1 callersFunctionupdate_bot
Rename a bot or update its file text. Creates a new document and deletes the old one.
firebase_db.py:94
Functionupdate_bot_persona
Update only the persona field for a bot.
firebase_db.py:124