Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Harry-027/DocuMind
/ functions
Functions
50 in github.com/Harry-027/DocuMind
⨍
Functions
50
◇
Types & classes
11
↓ 4 callers
Function
get_backend_url
()
client/src-tauri/src/lib.rs:14
↓ 2 callers
Function
chunk_text
chunk the large text based on chunk size
server/src/utils.rs:93
↓ 2 callers
Function
extract_file_content
extract the file content
server/src/utils.rs:81
↓ 2 callers
Function
fetchItems
()
client/src/App.tsx:24
↓ 2 callers
Method
get_model_details
get the model details from the config var based on kind enum
server/src/utils.rs:41
↓ 2 callers
Method
process_embeddings
process_embedding generates the embeddings for different chunk texts parallely
server/src/processor.rs:115
↓ 2 callers
Function
send_request
send_request helps to send the request to ollama api
server/src/utils.rs:102
↓ 1 callers
Method
create_collection
create_collection to be a private method. Collection to be created based on doc name
server/src/vector_db.rs:34
↓ 1 callers
Function
db_init
initialize the db client
server/src/vector_db.rs:18
↓ 1 callers
Function
fetchContent
()
client/src/Content.tsx:12
↓ 1 callers
Function
get_content_embeddings
get the content embeddings from the embedding gen model
server/src/utils.rs:122
↓ 1 callers
Function
get_settings
fetch the config variables
server/src/utils.rs:70
↓ 1 callers
Function
handleSubmit
()
client/src/InputForm.tsx:13
↓ 1 callers
Function
is_pdf
Validate PDF File Extension
server/src/utils.rs:171
↓ 1 callers
Method
list_collections
list out the collection names
server/src/vector_db.rs:114
↓ 1 callers
Method
process_chunks
process_chunks splits the large text into chunks
server/src/processor.rs:102
↓ 1 callers
Method
process_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 callers
Method
process_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 callers
Function
read_file
Read the pdf file
server/src/utils.rs:138
↓ 1 callers
Function
run
()
client/src-tauri/src/lib.rs:126
↓ 1 callers
Method
save_embeddings
save_embeddings saves the embeddings to the vector DB
server/src/processor.rs:141
↓ 1 callers
Function
save_file
Save File to Server
server/src/utils.rs:180
↓ 1 callers
Method
search_result
search for the similar points along with payload payload to be sent to LLM as context.
server/src/vector_db.rs:84
↓ 1 callers
Method
store_embeddings
saves the vector embeddings to database
server/src/vector_db.rs:59
↓ 1 callers
Function
style_text
(text: &str)
client/src-tauri/src/lib.rs:39
Function
AddButton
({ onClick, status }: AddButtonProps)
client/src/AddButton.tsx:8
Function
App
()
client/src/App.tsx:14
Function
Content
({ selectedItem }: { selectedItem: Doc })
client/src/Content.tsx:5
Function
InputForm
({ selectedItem })
client/src/InputForm.tsx:9
Function
Modal
({ isOpen, onClose, onSubmit }: any)
client/src/Modal.tsx:4
Function
Sidebar
({ items, onSelect }: { items: Doc[]; onSelect: (item: Doc | null) => void })
client/src/Sidebar.tsx:3
Function
doc_names
(State(state): State<AppState>)
server/src/handlers.rs:26
Function
fetch_content
(item: ListItem)
client/src-tauri/src/lib.rs:57
Function
fetch_list_items
()
client/src-tauri/src/lib.rs:22
Function
file_handler
(Path(file_name): Path<String>)
server/src/handlers.rs:41
Function
handleAddClick
()
client/src/App.tsx:33
Function
handleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
client/src/Modal.tsx:7
Function
handleKeyDown
(e: any)
client/src/InputForm.tsx:19
Function
handleSubmit
()
client/src/Modal.tsx:13
Function
handleSubmit
(file: File | null )
client/src/App.tsx:37
Function
log_request
log_request is the basic logging middleware for the server
server/src/utils.rs:22
Function
main
()
client/src-tauri/build.rs:1
Function
main
()
client/src-tauri/src/main.rs:7
Function
main
()
server/src/main.rs:26
Method
new
(settings: ConfigVar, vec_store: VectorStore)
server/src/processor.rs:21
Method
new
(db_url: &str)
server/src/vector_db.rs:28
Function
process_prompt
(item: ListItem, query: String)
client/src-tauri/src/lib.rs:74
Function
prompt_handler
( State(state): State<AppState>, Json(data): Json<InputPrompt>, )
server/src/handlers.rs:82
Function
upload_file
(name: String, ct: String)
client/src-tauri/src/lib.rs:97
Function
upload_file
(State(state): State<AppState>, multipart: Multipart)
server/src/handlers.rs:50