Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
9ab97b83
"test/vscode:/vscode.git/clone" did not exist on "ac82bdc4722dc25e66a1a8fe85f6d7a8a134a363"
Commit
9ab97b83
authored
Jul 11, 2024
by
Timothy J. Baek
Browse files
revert: reset vector db
parent
7ba7b959
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/apis/rag/index.ts
src/lib/apis/rag/index.ts
+1
-1
No files found.
src/lib/apis/rag/index.ts
View file @
9ab97b83
...
@@ -425,7 +425,7 @@ export const resetUploadDir = async (token: string) => {
...
@@ -425,7 +425,7 @@ export const resetUploadDir = async (token: string) => {
export
const
resetVectorDB
=
async
(
token
:
string
)
=>
{
export
const
resetVectorDB
=
async
(
token
:
string
)
=>
{
let
error
=
null
;
let
error
=
null
;
const
res
=
await
fetch
(
`
${
RAG_API_BASE_URL
}
/reset`
,
{
const
res
=
await
fetch
(
`
${
RAG_API_BASE_URL
}
/reset
/db
`
,
{
method
:
'
GET
'
,
method
:
'
GET
'
,
headers
:
{
headers
:
{
Accept
:
'
application/json
'
,
Accept
:
'
application/json
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment