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
bffda8c6
Commit
bffda8c6
authored
Jun 08, 2025
by
Wade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep milvus
parent
1080a267
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
docker-compose.yml
docker-compose.yml
+3
-3
main.go
main.go
+4
-4
No files found.
docker-compose.yml
View file @
bffda8c6
...
@@ -12,6 +12,6 @@ services:
...
@@ -12,6 +12,6 @@ services:
ports
:
ports
:
-
"
8000:8000"
-
"
8000:8000"
entrypoint
:
/app/myapp
entrypoint
:
/app/myapp
#
depends_on:
depends_on
:
# -
standalone
-
milvus-
standalone
# -
webserver
-
graph-
webserver
main.go
View file @
bffda8c6
...
@@ -4,7 +4,6 @@ import (
...
@@ -4,7 +4,6 @@ import (
"context"
"context"
"flag"
"flag"
"net/http"
"net/http"
"os"
"github.com/firebase/genkit/go/genkit"
"github.com/firebase/genkit/go/genkit"
"github.com/rs/zerolog"
"github.com/rs/zerolog"
...
@@ -68,6 +67,8 @@ func main() {
...
@@ -68,6 +67,8 @@ func main() {
graphragAddr
:=
flag
.
String
(
"graphrag-addr"
,
"graph-webserver:5670"
,
"GraphRAG server address"
)
graphragAddr
:=
flag
.
String
(
"graphrag-addr"
,
"graph-webserver:5670"
,
"GraphRAG server address"
)
googleAIApiKey
:=
flag
.
String
(
"googleai-api-key"
,
"AIzaSyCoYBOmnwRWlH_-nT25lpn8pMg3T18Q0uI"
,
"Google AI API key"
)
googleAIApiKey
:=
flag
.
String
(
"googleai-api-key"
,
"AIzaSyCoYBOmnwRWlH_-nT25lpn8pMg3T18Q0uI"
,
"Google AI API key"
)
pgConnString
:=
flag
.
String
(
"pg-conn-string"
,
"postgresql://postgres.awcfgdodiuqnlsobcivq:P99IU9NEoDRPsBfb@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres"
,
"PostgreSQL connection string"
)
pgConnString
:=
flag
.
String
(
"pg-conn-string"
,
"postgresql://postgres.awcfgdodiuqnlsobcivq:P99IU9NEoDRPsBfb@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres"
,
"PostgreSQL connection string"
)
tencentcloudSecretID
:=
flag
.
String
(
"tencentcloud-secret-id"
,
"AKID64oLfmfLtESUJ6i8LPSM4gCVbiniQuBF"
,
"Tencent Cloud Secret ID"
)
tencentcloudSecretKey
:=
flag
.
String
(
"tencentcloud-secret-key"
,
"rX2JMBnBMJ2YqulOo37xa5OUMSN4Xnpd"
,
"Tencent Cloud Secret Key"
)
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"sets log level to debug"
)
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"sets log level to debug"
)
flag
.
Parse
()
flag
.
Parse
()
...
@@ -77,9 +78,6 @@ func main() {
...
@@ -77,9 +78,6 @@ func main() {
zerolog
.
SetGlobalLevel
(
zerolog
.
DebugLevel
)
zerolog
.
SetGlobalLevel
(
zerolog
.
DebugLevel
)
}
}
os
.
Setenv
(
"TENCENTCLOUD_SECRET_ID"
,
"AKID64oLfmfLtESUJ6i8LPSM4gCVbiniQuBF"
)
os
.
Setenv
(
"TENCENTCLOUD_SECRET_KEY"
,
"rX2JMBnBMJ2YqulOo37xa5OUMSN4Xnpd"
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
// Initialize genkit with plugins using flag/env values
// Initialize genkit with plugins using flag/env values
...
@@ -128,6 +126,8 @@ func main() {
...
@@ -128,6 +126,8 @@ func main() {
kc
:=
knowledge
.
NewKnowledgeClient
(
knowledge
.
ClientConfig
{
kc
:=
knowledge
.
NewKnowledgeClient
(
knowledge
.
ClientConfig
{
Endpoint
:
"lkeap.tencentcloudapi.com"
,
Endpoint
:
"lkeap.tencentcloudapi.com"
,
Region
:
"ap-guangzhou"
,
Region
:
"ap-guangzhou"
,
SecretID
:
*
tencentcloudSecretID
,
SecretKey
:
*
tencentcloudSecretKey
,
})
})
if
err
:=
kc
.
Init
(
context
.
Background
());
err
!=
nil
{
if
err
:=
kc
.
Init
(
context
.
Background
());
err
!=
nil
{
log
.
Fatal
()
.
Msgf
(
"Failed to initialize KnowledgeClient: %v"
,
err
)
log
.
Fatal
()
.
Msgf
(
"Failed to initialize KnowledgeClient: %v"
,
err
)
...
...
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