MCPcopy Create free account

hub / github.com/Harry-027/DocuMind / functions

Functions50 in github.com/Harry-027/DocuMind

↓ 4 callersFunctionget_backend_url
()
client/src-tauri/src/lib.rs:14
↓ 2 callersFunctionchunk_text
chunk the large text based on chunk size
server/src/utils.rs:93
↓ 2 callersFunctionextract_file_content
extract the file content
server/src/utils.rs:81
↓ 2 callersFunctionfetchItems
()
client/src/App.tsx:24
↓ 2 callersMethodget_model_details
get the model details from the config var based on kind enum
server/src/utils.rs:41
↓ 2 callersMethodprocess_embeddings
process_embedding generates the embeddings for different chunk texts parallely
server/src/processor.rs:115
↓ 2 callersFunctionsend_request
send_request helps to send the request to ollama api
server/src/utils.rs:102
↓ 1 callersMethodcreate_collection
create_collection to be a private method. Collection to be created based on doc name
server/src/vector_db.rs:34
↓ 1 callersFunctiondb_init
initialize the db client
server/src/vector_db.rs:18
↓ 1 callersFunctionfetchContent
()
client/src/Content.tsx:12
↓ 1 callersFunctionget_content_embeddings
get the content embeddings from the embedding gen model
server/src/utils.rs:122
↓ 1 callersFunctionget_settings
fetch the config variables
server/src/utils.rs:70
↓ 1 callersFunctionhandleSubmit
()
client/src/InputForm.tsx:13
↓ 1 callersFunctionis_pdf
Validate PDF File Extension
server/src/utils.rs:171
↓ 1 callersMethodlist_collections
list out the collection names
server/src/vector_db.rs:114
↓ 1 callersMethodprocess_chunks
process_chunks splits the large text into chunks
server/src/processor.rs:102
↓ 1 callersMethodprocess_file
process_file splits the text into chunks so to generate the embeddings for proper context length and saves them to the db
server/src/processor.rs:30
↓ 1 callersMethodprocess_prompt
process_prompt gets the similar cosine embeddings for the user prompt and sets the context for LLM to get the result generated as per the context
server/src/processor.rs:41
↓ 1 callersFunctionread_file
Read the pdf file
server/src/utils.rs:138
↓ 1 callersFunctionrun
()
client/src-tauri/src/lib.rs:126
↓ 1 callersMethodsave_embeddings
save_embeddings saves the embeddings to the vector DB
server/src/processor.rs:141
↓ 1 callersFunctionsave_file
Save File to Server
server/src/utils.rs:180
↓ 1 callersMethodsearch_result
search for the similar points along with payload payload to be sent to LLM as context.
server/src/vector_db.rs:84
↓ 1 callersMethodstore_embeddings
saves the vector embeddings to database
server/src/vector_db.rs:59
↓ 1 callersFunctionstyle_text
(text: &str)
client/src-tauri/src/lib.rs:39
FunctionAddButton
({ onClick, status }: AddButtonProps)
client/src/AddButton.tsx:8
FunctionApp
()
client/src/App.tsx:14
FunctionContent
({ selectedItem }: { selectedItem: Doc })
client/src/Content.tsx:5
FunctionInputForm
({ selectedItem })
client/src/InputForm.tsx:9
FunctionModal
({ isOpen, onClose, onSubmit }: any)
client/src/Modal.tsx:4
FunctionSidebar
({ items, onSelect }: { items: Doc[]; onSelect: (item: Doc | null) => void })
client/src/Sidebar.tsx:3
Functiondoc_names
(State(state): State<AppState>)
server/src/handlers.rs:26
Functionfetch_content
(item: ListItem)
client/src-tauri/src/lib.rs:57
Functionfetch_list_items
()
client/src-tauri/src/lib.rs:22
Functionfile_handler
(Path(file_name): Path<String>)
server/src/handlers.rs:41
FunctionhandleAddClick
()
client/src/App.tsx:33
FunctionhandleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
client/src/Modal.tsx:7
FunctionhandleKeyDown
(e: any)
client/src/InputForm.tsx:19
FunctionhandleSubmit
()
client/src/Modal.tsx:13
FunctionhandleSubmit
(file: File | null )
client/src/App.tsx:37
Functionlog_request
log_request is the basic logging middleware for the server
server/src/utils.rs:22
Functionmain
()
client/src-tauri/build.rs:1
Functionmain
()
client/src-tauri/src/main.rs:7
Functionmain
()
server/src/main.rs:26
Methodnew
(settings: ConfigVar, vec_store: VectorStore)
server/src/processor.rs:21
Methodnew
(db_url: &str)
server/src/vector_db.rs:28
Functionprocess_prompt
(item: ListItem, query: String)
client/src-tauri/src/lib.rs:74
Functionprompt_handler
( State(state): State<AppState>, Json(data): Json<InputPrompt>, )
server/src/handlers.rs:82
Functionupload_file
(name: String, ct: String)
client/src-tauri/src/lib.rs:97
Functionupload_file
(State(state): State<AppState>, multipart: Multipart)
server/src/handlers.rs:50