MCPcopy Create free account

hub / github.com/SkywalkerDarren/chatWeb / functions

Functions65 in github.com/SkywalkerDarren/chatWeb

↓ 5 callersMethodadd_all
Add multiple embeddings.
storage.py:29
↓ 5 callersMethodcreate_storage
Create a storage object.
storage.py:21
↓ 4 callersMethodcreate_embeddings
Create embeddings for the provided input.
ai.py:116
↓ 3 callersMethod_chat_stream
(self, messages: list[dict], use_stream: bool = None)
ai.py:24
↓ 3 callersMethod_load
(self, name: str)
storage.py:96
↓ 3 callersMethodbeen_indexed
Check if the database has been indexed.
storage.py:49
↓ 3 callersMethodcompletion
Create a completion.
ai.py:57
↓ 3 callersMethodcreate_embedding
Create an embedding for the provided text.
ai.py:111
↓ 3 callersFunctionextract_text_from_docx
Extract text content from a DOCX file.
contents.py:76
↓ 3 callersFunctionextract_text_from_pdf
Extract text content from a PDF file.
contents.py:47
↓ 3 callersFunctionextract_text_from_txt
Extract text content from a TXT file.
contents.py:68
↓ 3 callersMethodget_keywords
Get keywords from the query.
ai.py:87
↓ 3 callersMethodget_texts
Get the text for the provided embedding.
storage.py:34
↓ 3 callersFunctionweb_crawler_newspaper
Run the web crawler.
contents.py:12
↓ 2 callersMethod_cut_texts
(self, context)
ai.py:77
↓ 2 callersMethod_get_hash_id
(self, contents)
webui.py:32
↓ 2 callersMethod_num_tokens_from_string
Returns the number of tokens in a text string.
ai.py:52
↓ 2 callersFunction_save_to_storage
(contents, hash_id)
api.py:39
↓ 2 callersMethod_save_to_storage
(self, contents, hash_id)
webui.py:21
↓ 2 callersMethod_wrap_create_embedding
(self, data)
ai.py:96
↓ 2 callersMethodgenerate_summary
Generate a summary for the provided embeddings.
ai.py:145
↓ 2 callersMethodget_all_embeddings
Get all embeddings.
storage.py:39
↓ 2 callersMethodrun
(self)
webui.py:35
↓ 1 callersFunction_console
Run the console.
console.py:18
↓ 1 callersMethod_delete
(self, name: str)
storage.py:106
↓ 1 callersFunction_get_contents
Get the contents.
console.py:103
↓ 1 callersFunction_get_raw_html
(url)
contents.py:26
↓ 1 callersMethod_save
(self, texts, index, name: str)
storage.py:92
↓ 1 callersFunctionapi
Run the API.
api.py:20
↓ 1 callersMethodbeen_indexed
(self, name: str)
storage.py:88
↓ 1 callersMethodclear
Clear the database.
storage.py:44
↓ 1 callersFunctionconsole
(cfg: Config)
console.py:9
↓ 1 callersMethodget_embedding_model
(self, model: str)
config.py:96
↓ 1 callersMethodget_gpt_model
(self, model: str)
config.py:90
↓ 1 callersFunctionrun
Run the program.
main.py:10
↓ 1 callersMethodsubmit
(url)
webui.py:48
↓ 1 callersFunctionwebui
Run the web UI.
webui.py:11
Method__del__
Close the session.
storage.py:162
Method__init__
(self)
config.py:54
Method__init__
Initialize the storage.
storage.py:57
Method__init__
Initialize the storage.
storage.py:129
Method__init__
(self, cfg: Config)
ai.py:14
Method__init__
(self, cfg: Config)
webui.py:17
Method_calc_avg_embedding
(embeddings)
ai.py:177
Method_calc_paragraph_avg_embedding_with_sif
(paragraph_list)
ai.py:186
Methodadd_all
Add multiple embeddings.
storage.py:61
Methodadd_all
Add multiple embeddings.
storage.py:137
Functionanswer
Query.
api.py:86
Methodbeen_indexed
(self, name: str)
storage.py:159
Methodclear
Clear the database.
storage.py:84
Methodclear
Clear the database.
storage.py:154
Functioncrawler_url
Crawler the URL.
api.py:32
Functioncreate_upload_file
Upload file.
api.py:49
Methodget_all_embeddings
(self, name: str)
storage.py:78
Methodget_all_embeddings
Get all embeddings.
storage.py:149
Methodget_embedding
(input_slice: list[str])
ai.py:123
Functionget_instance
(cfg)
storage.py:117
Methodget_texts
Get the text for the provided embedding.
storage.py:71
Methodget_texts
Get the text for the provided embedding.
storage.py:143
Functionhttp_error_handler
Error handler.
api.py:108
Methodreset
()
webui.py:145
Methodrespond
(message, chat_history, hash_id)
webui.py:131
Functionsingleton
(cls)
storage.py:114
Functionsummary
Generate summary.
api.py:71
Functionvalidate_error_handler
Error handler.
api.py:99