Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agentchat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟@五瓣科技
agentchat
Commits
e8b9115a
Commit
e8b9115a
authored
Jun 04, 2025
by
Wade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
milvus swagger
parent
39af445c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
73 deletions
+16
-73
swagger.yaml
docs/swagger.yaml
+15
-72
main.go
main.go
+1
-1
No files found.
docs/swagger.yaml
View file @
e8b9115a
...
...
@@ -59,21 +59,10 @@ paths:
type
:
string
description
:
The response from the chat workflow
example
:
"
The
capital
of
the
UK
is
London."
'
400'
:
description
:
Invalid input
content
:
application/json
:
schema
:
type
:
object
properties
:
error
:
type
:
string
description
:
Error message
example
:
"
Invalid
request
body"
/idx/milvus
:
/index/document
:
post
:
summary
:
Store Milvus index data
description
:
Stores
question, answer, and summary data for Milvus indexing
.
description
:
Stores
content data for Milvus indexing, including user information and optional metadata
.
tags
:
-
Indexing
requestBody
:
...
...
@@ -83,29 +72,27 @@ paths:
schema
:
type
:
object
properties
:
question
:
type
:
string
description
:
The question to store
example
:
"
What
is
AI?"
answer
:
type
:
string
description
:
The answer to store
example
:
"
AI
is
artificial
intelligence..."
summary
:
content
:
type
:
string
description
:
The
summary of the Q&A
example
:
"
AI
overview
"
description
:
The
content to store for indexing
example
:
"
The
moon
is
Earth's
only
natural
satellite.
"
username
:
type
:
string
description
:
The username of the requester
example
:
"
john_doe
"
example
:
"
bob
"
user_id
:
type
:
string
description
:
The unique identifier for the user
example
:
"
user_12345"
example
:
"
user456"
metadata
:
type
:
object
description
:
Additional metadata for the content
additionalProperties
:
true
example
:
source
:
"
user_input"
timestamp
:
"
2025-06-04T17:10:00+08:00"
required
:
-
question
-
answer
-
content
responses
:
'
200'
:
description
:
Successful storage of Milvus index data
...
...
@@ -118,28 +105,6 @@ paths:
type
:
integer
description
:
The ID of the stored record
example
:
1
'
400'
:
description
:
Invalid input
content
:
application/json
:
schema
:
type
:
object
properties
:
error
:
type
:
string
description
:
Error message
example
:
"
Invalid
request
body"
'
500'
:
description
:
Server error
content
:
application/json
:
schema
:
type
:
object
properties
:
error
:
type
:
string
description
:
Error message
example
:
"
Failed
to
store
data"
/index/graph
:
post
:
summary
:
Store GraphRAG index data
...
...
@@ -186,27 +151,5 @@ paths:
type
:
integer
description
:
The ID of the stored record
example
:
1
'
400'
:
description
:
Invalid input
content
:
application/json
:
schema
:
type
:
object
properties
:
error
:
type
:
string
description
:
Error message
example
:
"
Invalid
request
body"
'
500'
:
description
:
Server error
content
:
application/json
:
schema
:
type
:
object
properties
:
error
:
type
:
string
description
:
Error message
example
:
"
Failed
to
store
data"
components
:
schemas
:
{}
main.go
View file @
e8b9115a
...
...
@@ -122,7 +122,7 @@ func main() {
_
=
retriever
// 定义文档索引流
genkit
.
DefineFlow
(
g
,
"index
Documents
"
,
func
(
ctx
context
.
Context
,
input
*
DocumentInput
)
(
string
,
error
)
{
genkit
.
DefineFlow
(
g
,
"index
/document
"
,
func
(
ctx
context
.
Context
,
input
*
DocumentInput
)
(
string
,
error
)
{
if
input
.
Metadata
==
nil
{
input
.
Metadata
=
make
(
map
[
string
]
any
)
...
...
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