Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mayurkoli8/ChatDouble
/ functions
Functions
14 in github.com/Mayurkoli8/ChatDouble
⨍
Functions
14
◇
Types & classes
0
↓ 11 callers
Function
save_chat_history_cloud
Save chat history to Firestore under: users/{user}/chats/{bot}
firebase_db.py:136
↓ 3 callers
Function
get_user_bots
Retrieve all bots for a given user. Returns a list of dicts [{name, file, persona?}, ...]
firebase_db.py:65
↓ 2 callers
Function
build_faiss_for_bot
Returns (embed_model, faiss_index, bot_lines list) Cached per content string.
app.py:222
↓ 2 callers
Function
get_bot_file
Get the bot's full text content and optional persona. Returns (file_text, persona)
firebase_db.py:82
↓ 2 callers
Function
login_user
(username: str, password: str)
firebase_db.py:26
↓ 2 callers
Function
register_user
Register a new user with hashed password. Returns False if username already exists.
firebase_db.py:12
↓ 1 callers
Function
add_bot
Store bot data inside Firestore: users/{username}/bots/{bot_name} Supports optional 'persona' (personality description).
firebase_db.py:48
↓ 1 callers
Function
delete_bot
Delete a bot and its data from Firestore.
firebase_db.py:117
↓ 1 callers
Function
extract_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 callers
Function
generate_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 callers
Function
load_chat_history_cloud
Load chat history from Firestore. Returns an empty list if no history found.
firebase_db.py:146
↓ 1 callers
Function
process_pending_generation
()
app.py:786
↓ 1 callers
Function
update_bot
Rename a bot or update its file text. Creates a new document and deletes the old one.
firebase_db.py:94
Function
update_bot_persona
Update only the persona field for a bot.
firebase_db.py:124