Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Anything Llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Mintplex Labs
Anything Llm
Commits
22ecb7cb
Unverified
Commit
22ecb7cb
authored
6 months ago
by
Timothy Carambat
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add RAG agent plugin to API agent (#2171)
parent
5507c352
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/utils/agents/ephemeral.js
+5
-0
5 additions, 0 deletions
server/utils/agents/ephemeral.js
server/utils/boot/MetaGenerator.js
+1
-1
1 addition, 1 deletion
server/utils/boot/MetaGenerator.js
with
6 additions
and
1 deletion
server/utils/agents/ephemeral.js
+
5
−
0
View file @
22ecb7cb
...
@@ -188,6 +188,7 @@ class EphemeralAgentHandler extends AgentHandler {
...
@@ -188,6 +188,7 @@ class EphemeralAgentHandler extends AgentHandler {
);
);
this
.
#funcsToLoad
=
[
this
.
#funcsToLoad
=
[
AgentPlugins
.
memory
.
name
,
AgentPlugins
.
docSummarizer
.
name
,
AgentPlugins
.
docSummarizer
.
name
,
AgentPlugins
.
webScraping
.
name
,
AgentPlugins
.
webScraping
.
name
,
...(
await
agentSkillsFromSystemSettings
()),
...(
await
agentSkillsFromSystemSettings
()),
...
@@ -209,6 +210,10 @@ class EphemeralAgentHandler extends AgentHandler {
...
@@ -209,6 +210,10 @@ class EphemeralAgentHandler extends AgentHandler {
model
:
this
.
model
??
"
gpt-4o
"
,
model
:
this
.
model
??
"
gpt-4o
"
,
chats
:
await
this
.
#chatHistory
(
20
),
chats
:
await
this
.
#chatHistory
(
20
),
handlerProps
:
{
handlerProps
:
{
invocation
:
{
workspace
:
this
.
#workspace
,
workspace_id
:
this
.
#workspace
.
id
,
},
log
:
this
.
log
,
log
:
this
.
log
,
},
},
});
});
...
...
This diff is collapsed.
Click to expand it.
server/utils/boot/MetaGenerator.js
+
1
−
1
View file @
22ecb7cb
...
@@ -166,7 +166,7 @@ class MetaGenerator {
...
@@ -166,7 +166,7 @@ class MetaGenerator {
}
}
async
#fetchConfg
()
{
async
#fetchConfg
()
{
this
.
#log
(
`fetching custom
e
meta tag settings...`
);
this
.
#log
(
`fetching custom meta tag settings...`
);
const
{
SystemSettings
}
=
require
(
"
../../models/systemSettings
"
);
const
{
SystemSettings
}
=
require
(
"
../../models/systemSettings
"
);
const
customTitle
=
await
SystemSettings
.
getValueOrFallback
(
const
customTitle
=
await
SystemSettings
.
getValueOrFallback
(
{
label
:
"
meta_page_title
"
},
{
label
:
"
meta_page_title
"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment