Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
9a69712d
Commit
9a69712d
authored
Feb 05, 2026
by
Kantz
Browse files
doppelte ausgabe verhindert und neighbors score auf 0
parent
6ed827f0
Changes
1
Show whitespace changes
Inline
Side-by-side
math-tutor/backend/app/deterministic_services/vector_store.py
View file @
9a69712d
...
...
@@ -476,7 +476,7 @@ def retrieve(
d.section_index, d.subsection_index, d.child_index,
d.section_title, d.subsection_title, d.title, d.type,
d.path, d.markdown,
0
.9
AS score
0 AS score
FROM docs d
JOIN unnest(%(sec_arr)s::int[], %(sub_arr)s::int[], %(child_arr)s::int[]) AS u(sec, sub, child)
ON d.section_index = u.sec AND d.subsection_index = u.sub AND d.child_index = u.child
...
...
@@ -489,7 +489,6 @@ def retrieve(
child_uids
=
{
child
.
uid
for
child
in
children
}
neighbors
=
[
neighbor
for
neighbor
in
neighbors
if
neighbor
.
uid
not
in
child_uids
]
retrivla_dict
=
{
"children"
:
children
,
"children_direct"
:
children_direct
,
"children_expanded"
:
children_expanded
,
"subsections"
:
subsections
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment