MCPcopy Create free account
hub / github.com/codingis4noobs2/QuickDigest / build_index

Function build_index

app.py:102–105  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

100 # Cache the result to avoid recomputation
101 @st.cache_resource(show_spinner="Indexing documents...Please have patience")
102 def build_index(files):
103 documents = SimpleDirectoryReader(input_files=files).load_data()
104 index = VectorStoreIndex.from_documents(documents)
105 return index
106
107 # Handle streaming responses
108 def handle_stream(root, stream: StreamingAgentChatResponse):

Callers 1

chat_with_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected