Apply shared term normalization to search terms, query matchers and the alias index
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Read search.validate_and_prepare_term, searchlib._parse_search_term, and query.get_matching_term_for_text, then inspect the related-terms indexes in storage/memory/related_terms_index.py and storage/sqlite/related_terms_index.py. Compare the incremental update path in ConversationBase with add_messages._collect_related_terms_for_fuzzy_index and its collection helpers. Done means all paths normalize terms consistently and both ingestion paths collect the same terms; run the relevant search, query, and indexing tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #322 / #325. #325 makes the memory and SQLite term and property indexes share normalize_term (NFC, lowercase, trim, collapse whitespace). Several other places still only call .lower(), so they can disagree with the index keys:
- Search side.
search.validate_and_prepare_term,searchlib._parse_search_termandquery.get_matching_term_for_text(and the entity-matching helpers such asmatch_entity_name_or_type) still only lowercase. Example: for entity"Space Needle"and search term"space needle",lookup_termfinds the semref, butboost_entitiescompares"space needle"with"space needle"and fails, so the entity loses its boost. Normalizing once invalidate_and_prepare_termand in the query matchers would fix this. - Related-terms alias index (
storage/memory/related_terms_index.py,storage/sqlite/related_terms_index.py) stores and looks up raw text. An alias registered for"space needle"is missed when the user searches" Space\tNeedle". - The two fuzzy-index update paths collect different terms.
ConversationBaseincremental updates add only entity names, topic text and action verbs.add_messages._collect_related_terms_for_fuzzy_indexusescollect_entity_terms/collect_action_terms, which also include types, facets, subjects and objects. So related-term expansion depends on which ingestion path was used. This was already the case before #325.
Found while reviewing #325; left out of it to keep that PR focused on the storage indexes.
- Ngôn ngữ chính
- Python
- Star
- 892
- Fork
- 76
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/typeagent-py
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoft/typeagent-py#270 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/typeagent-py#171 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Code Quality & Cleanup (from TODO.md)Có thể làm lại được @shreejaykurhade đã nhận 196 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/typeagent-py#112 · 15 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
microsoft/typeagent-py#45 · 12 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/typeagent-py
Issue tương tự
-
[Resource]: LoreĐang mởresource-submission validation-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
hesreallyhim/awesome-claude-code#3234 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openminion/openminion#376 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: ☹︎ Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
posit-dev/great-tables#1028 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
integration: apple_tv
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
home-assistant/core#188282 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A "since" range is worded as a career: "the past two seasons" says "regular season career (2025 on)"Đang mởP4: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
jeffknupp/association#538 ·