Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ai-tech
dify
Commits
bc54cdc5
Unverified
Commit
bc54cdc5
authored
Dec 07, 2023
by
Pascal M
Committed by
GitHub
Dec 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: typo in dataset docstore (#1711)
parent
5d10cf0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dataset_docstore.py
api/core/docstore/dataset_docstore.py
+2
-2
indexing_runner.py
api/core/indexing_runner.py
+2
-2
No files found.
api/core/docstore/dataset_docstore.py
View file @
bc54cdc5
...
...
@@ -8,7 +8,7 @@ from extensions.ext_database import db
from
models.dataset
import
Dataset
,
DocumentSegment
class
Dat
e
setDocumentStore
:
class
Dat
a
setDocumentStore
:
def
__init__
(
self
,
dataset
:
Dataset
,
...
...
@@ -20,7 +20,7 @@ class DatesetDocumentStore:
self
.
_document_id
=
document_id
@
classmethod
def
from_dict
(
cls
,
config_dict
:
Dict
[
str
,
Any
])
->
"Dat
e
setDocumentStore"
:
def
from_dict
(
cls
,
config_dict
:
Dict
[
str
,
Any
])
->
"Dat
a
setDocumentStore"
:
return
cls
(
**
config_dict
)
def
to_dict
(
self
)
->
Dict
[
str
,
Any
]:
...
...
api/core/indexing_runner.py
View file @
bc54cdc5
...
...
@@ -15,7 +15,7 @@ from sqlalchemy.orm.exc import ObjectDeletedError
from
core.data_loader.file_extractor
import
FileExtractor
from
core.data_loader.loader.notion
import
NotionLoader
from
core.docstore.dataset_docstore
import
Dat
e
setDocumentStore
from
core.docstore.dataset_docstore
import
Dat
a
setDocumentStore
from
core.generator.llm_generator
import
LLMGenerator
from
core.index.index
import
IndexBuilder
from
core.model_providers.error
import
ProviderTokenNotInitError
...
...
@@ -475,7 +475,7 @@ class IndexingRunner:
)
# save node to document segment
doc_store
=
Dat
e
setDocumentStore
(
doc_store
=
Dat
a
setDocumentStore
(
dataset
=
dataset
,
user_id
=
dataset_document
.
created_by
,
document_id
=
dataset_document
.
id
...
...
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