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
2914c09d
Unverified
Commit
2914c09d
authored
1 year ago
by
Tobias Landenberger
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: adjust return type of addDocuments in case of no additions (#353)
parent
6e72519c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/models/documents.js
+1
-1
1 addition, 1 deletion
server/models/documents.js
with
1 addition
and
1 deletion
server/models/documents.js
+
1
−
1
View file @
2914c09d
...
@@ -36,7 +36,7 @@ const Document = {
...
@@ -36,7 +36,7 @@ const Document = {
addDocuments
:
async
function
(
workspace
,
additions
=
[])
{
addDocuments
:
async
function
(
workspace
,
additions
=
[])
{
const
VectorDb
=
getVectorDbClass
();
const
VectorDb
=
getVectorDbClass
();
if
(
additions
.
length
===
0
)
return
;
if
(
additions
.
length
===
0
)
return
{
failed
:
[],
embedded
:
[]
}
;
const
embedded
=
[];
const
embedded
=
[];
const
failedToEmbed
=
[];
const
failedToEmbed
=
[];
...
...
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