MCPcopy Create free account

hub / github.com/pashpashpash/vault-ai / functions

Functions71 in github.com/pashpashpash/vault-ai

↓ 24 callersMethodError
()
errorlist/errorlist.go:18
↓ 8 callersFunctionNewError
(input string)
errorlist/errorlist.go:10
↓ 5 callersMethodString
()
form/form.go:7
↓ 3 callersFunctionWebAbs
(relpath string)
serverutil/util.go:7
↓ 2 callersFunctionCheckNotEmpty
(input, name string, errs errorlist.Errors)
validator/validator.go:13
↓ 2 callersFunctionGetConfig
()
serverutil/config.go:42
↓ 2 callersFunctionNewSingleError
(name string, err error)
errorlist/errorlist.go:30
↓ 2 callersFunctionServeIndex
Takes a response writer Meta config and URL and servers the react app with the correct metadata
vault-web-server/main.go:123
↓ 2 callersMethodWrite
(b []byte)
vault-web-server/main.go:217
↓ 2 callersFunctioncallEmbeddingAPIWithRetry
(client *openai.Client, texts []string, embedModel openai.EmbeddingModel, maxRetries int)
vault-web-server/postapi/openai.go:115
↓ 2 callersFunctiongetCustomOpenAPIKey
()
components/Util/PostAPI.jsx:20
↓ 2 callersFunctiongetOrCreateUUID
()
components/Util/PostAPI.jsx:8
↓ 2 callersMethodunifiedHandler
(props: Props)
components/routes.jsx:33
↓ 1 callersFunctionCreateChunks
(fileContent string, title string)
chunk/fileprocessing.go:41
↓ 1 callersMethodCreateNamespace
(uuid string)
vectordb/qdrant/qdrant.go:83
↓ 1 callersFunctionExtractTextFromPDF
extract human-readable text from a given pdf with support for spaces/whitespace.
chunk/fileprocessing.go:187
↓ 1 callersFunctionFormParseVerify
Util: does grunt work of decoding + verifying form + writing errors back
vault-web-server/postapi/formparseverify.go:15
↓ 1 callersFunctionGetTextFromFile
(f multipart.File)
chunk/fileprocessing.go:107
↓ 1 callersMethodNamespaceExists
(uuid string)
vectordb/qdrant/qdrant.go:59
↓ 1 callersFunctionNew
()
errorlist/errorlist.go:26
↓ 1 callersFunctionNew
(endpoint string, apiKey string)
vectordb/pinecone/pinecone.go:30
↓ 1 callersFunctionNew
(endpoint string)
vectordb/qdrant/qdrant.go:52
↓ 1 callersFunctionNewHandlerContext
(openAIClient *openai.Client, vectorDB vectordb.VectorDB)
vault-web-server/postapi/handlercontext.go:16
↓ 1 callersFunctionReactFileServer
Forwards all traffic to React, except basic file serving
vault-web-server/main.go:222
↓ 1 callersMethodRetrieve
(questionEmbedding []float32, topK int, uuid string)
vectordb/vectordb.go:15
↓ 1 callersFunctionStaticRedirectHandler
(to string)
vault-web-server/main.go:252
↓ 1 callersMethodString
()
errorlist/errorlist.go:14
↓ 1 callersMethodString
()
errorlist/errorlist.go:36
↓ 1 callersMethodUpsertEmbeddings
(embeddings [][]float32, chunks []chunk.Chunk, uuid string)
vectordb/vectordb.go:14
↓ 1 callersMethodValidate
(map[string]error)
validator/validator.go:10
↓ 1 callersFunctionbuildPrompt
(contexts []string, question string)
vault-web-server/postapi/openai.go:182
↓ 1 callersFunctioncallOpenAI
(client *openai.Client, prompt string, model string, instructions string, maxTokens int)
vault-web-server/postapi/openai.go:33
↓ 1 callersFunctiongetCookie
(name: string)
components/Util/Cookies.jsx:3
↓ 1 callersFunctiongetEmbedding
(client *openai.Client, text string, embedModel openai.EmbeddingModel)
vault-web-server/postapi/openai.go:166
↓ 1 callersFunctiongetEmbeddings
(client *openai.Client, chunks []chunk.Chunk, batchSize int, embedModel openai.EmbeddingModel)
vault-web-server/postapi/openai.go:136
↓ 1 callersFunctionhandleAskQuestion
()
components/Pages/LandingPage/index.jsx:74
↓ 1 callersFunctionhttpRedirect
()
vault-web-server/main.go:258
↓ 1 callersFunctionmin
(a, b int)
vault-web-server/postapi/openai.go:175
↓ 1 callersFunctionunmarshalFile
(path string, targetStruct interface{})
serverutil/config.go:61
↓ 1 callersFunctionuseChatCompletionAPI
(client *openai.Client, prompt, modelParam string, instructions string, temperature float32, maxTokens int, to
vault-web-server/postapi/openai.go:57
↓ 1 callersFunctionuseCompletionAPI
(client *openai.Client, prompt, modelParam string, temperature float32, maxTokens int, topP float32, frequen
vault-web-server/postapi/openai.go:90
FunctionContextSnippet
({ context, index })
components/Pages/LandingPage/index.jsx:14
MethodError
()
errorlist/errorlist.go:50
FunctionFooter
(props: Props)
components/Footer/index.jsx:12
FunctionHeader
()
components/Header/index.jsx:8
FunctionLandingPage
(props: Props)
components/Pages/LandingPage/index.jsx:64
FunctionPage
(props: Props)
components/Page/index.jsx:27
MethodQuestionHandler
Handle Requests For Question
vault-web-server/postapi/questions.go:24
FunctionResponseDisplay
({ response })
components/Pages/LandingPage/index.jsx:40
MethodRetrieve
(questionEmbedding []float32, topK int, uuid string)
vectordb/pinecone/pinecone.go:123
MethodRetrieve
(questionEmbedding []float32, topK int, uuid string)
vectordb/qdrant/qdrant.go:178
MethodString
()
form/callquestions.go:24
MethodUploadHandler
3 MB
vault-web-server/postapi/fileupload.go:24
MethodUpsertEmbeddings
(embeddings [][]float32, chunks []chunk.Chunk, uuid string)
vectordb/pinecone/pinecone.go:37
MethodUpsertEmbeddings
(embeddings [][]float32, chunks []chunk.Chunk, uuid string)
vectordb/qdrant/qdrant.go:125
MethodValidate
()
form/callquestions.go:15
MethodValidate
()
form/form.go:6
MethodValidate
(errs errorlist.Errors)
validator/email.go:16
FunctionValidateEmail
(errs errorlist.Errors, me *Email)
validator/email.go:37
Functioncancel
()
components/Util/Promises.jsx:22
MethodcomponentDidCatch
(error: Error, info: Object)
components/routes.jsx:59
MethodcomponentDidMount
()
components/routes.jsx:39
MethodcomponentWillReceiveProps
()
components/routes.jsx:43
Methodconstructor
(props: Props)
components/routes.jsx:49
Functionfloat32sToBytes
(floats []float32)
vectordb/pinecone/pinecone.go:163
FunctionhandleFileUpload
(files)
components/Pages/LandingPage/index.jsx:111
FunctionhandleKeyDown
(e)
components/Pages/LandingPage/index.jsx:98
Functionmain
()
vault-web-server/main.go:48
Methodrender
()
components/routes.jsx:74
Methodrender
()
components/Go/index.jsx:22
FunctiontoggleCollapse
()
components/Pages/LandingPage/index.jsx:17