Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SkywalkerDarren/chatWeb
/ functions
Functions
65 in github.com/SkywalkerDarren/chatWeb
⨍
Functions
65
◇
Types & classes
11
↳
Endpoints
4
↓ 5 callers
Method
add_all
Add multiple embeddings.
storage.py:29
↓ 5 callers
Method
create_storage
Create a storage object.
storage.py:21
↓ 4 callers
Method
create_embeddings
Create embeddings for the provided input.
ai.py:116
↓ 3 callers
Method
_chat_stream
(self, messages: list[dict], use_stream: bool = None)
ai.py:24
↓ 3 callers
Method
_load
(self, name: str)
storage.py:96
↓ 3 callers
Method
been_indexed
Check if the database has been indexed.
storage.py:49
↓ 3 callers
Method
completion
Create a completion.
ai.py:57
↓ 3 callers
Method
create_embedding
Create an embedding for the provided text.
ai.py:111
↓ 3 callers
Function
extract_text_from_docx
Extract text content from a DOCX file.
contents.py:76
↓ 3 callers
Function
extract_text_from_pdf
Extract text content from a PDF file.
contents.py:47
↓ 3 callers
Function
extract_text_from_txt
Extract text content from a TXT file.
contents.py:68
↓ 3 callers
Method
get_keywords
Get keywords from the query.
ai.py:87
↓ 3 callers
Method
get_texts
Get the text for the provided embedding.
storage.py:34
↓ 3 callers
Function
web_crawler_newspaper
Run the web crawler.
contents.py:12
↓ 2 callers
Method
_cut_texts
(self, context)
ai.py:77
↓ 2 callers
Method
_get_hash_id
(self, contents)
webui.py:32
↓ 2 callers
Method
_num_tokens_from_string
Returns the number of tokens in a text string.
ai.py:52
↓ 2 callers
Function
_save_to_storage
(contents, hash_id)
api.py:39
↓ 2 callers
Method
_save_to_storage
(self, contents, hash_id)
webui.py:21
↓ 2 callers
Method
_wrap_create_embedding
(self, data)
ai.py:96
↓ 2 callers
Method
generate_summary
Generate a summary for the provided embeddings.
ai.py:145
↓ 2 callers
Method
get_all_embeddings
Get all embeddings.
storage.py:39
↓ 2 callers
Method
run
(self)
webui.py:35
↓ 1 callers
Function
_console
Run the console.
console.py:18
↓ 1 callers
Method
_delete
(self, name: str)
storage.py:106
↓ 1 callers
Function
_get_contents
Get the contents.
console.py:103
↓ 1 callers
Function
_get_raw_html
(url)
contents.py:26
↓ 1 callers
Method
_save
(self, texts, index, name: str)
storage.py:92
↓ 1 callers
Function
api
Run the API.
api.py:20
↓ 1 callers
Method
been_indexed
(self, name: str)
storage.py:88
↓ 1 callers
Method
clear
Clear the database.
storage.py:44
↓ 1 callers
Function
console
(cfg: Config)
console.py:9
↓ 1 callers
Method
get_embedding_model
(self, model: str)
config.py:96
↓ 1 callers
Method
get_gpt_model
(self, model: str)
config.py:90
↓ 1 callers
Function
run
Run the program.
main.py:10
↓ 1 callers
Method
submit
(url)
webui.py:48
↓ 1 callers
Function
webui
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
Method
add_all
Add multiple embeddings.
storage.py:61
Method
add_all
Add multiple embeddings.
storage.py:137
Function
answer
Query.
api.py:86
Method
been_indexed
(self, name: str)
storage.py:159
Method
clear
Clear the database.
storage.py:84
Method
clear
Clear the database.
storage.py:154
Function
crawler_url
Crawler the URL.
api.py:32
Function
create_upload_file
Upload file.
api.py:49
Method
get_all_embeddings
(self, name: str)
storage.py:78
Method
get_all_embeddings
Get all embeddings.
storage.py:149
Method
get_embedding
(input_slice: list[str])
ai.py:123
Function
get_instance
(cfg)
storage.py:117
Method
get_texts
Get the text for the provided embedding.
storage.py:71
Method
get_texts
Get the text for the provided embedding.
storage.py:143
Function
http_error_handler
Error handler.
api.py:108
Method
reset
()
webui.py:145
Method
respond
(message, chat_history, hash_id)
webui.py:131
Function
singleton
(cls)
storage.py:114
Function
summary
Generate summary.
api.py:71
Function
validate_error_handler
Error handler.
api.py:99