Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kemingy
Copy link
Member

@kemingy kemingy commented Aug 1, 2025

No description provided.

@kemingy kemingy requested a review from Copilot August 1, 2025 10:28

This comment was marked as outdated.

Signed-off-by: Keming <[email protected]>
@kemingy kemingy requested a review from Copilot August 1, 2025 10:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for user-customizable prompts across multiple components in the vechord library. The change allows users to override default prompts for extraction, evaluation, entity recognition, and chunking operations.

  • Extracted hardcoded prompts into module-level constants for better maintainability
  • Added optional prompt parameters to constructors allowing user customization
  • Updated docstrings for GraphEntity and GraphRelation classes to improve documentation

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vechord/model/internal.py Added docstrings to GraphEntity and GraphRelation classes
vechord/extract.py Extracted prompts to constants and added user prompt parameter to GeminiExtractor
vechord/evaluate.py Refactored UMBRELA evaluator to use configurable prompts with separate field template
vechord/entity.py Extracted entity recognition prompts to constants and added prompt customization
vechord/chunk.py Refactored chunking prompts to constants and added prompt parameter to GeminiChunker

@kemingy kemingy merged commit 5101d3e into tensorchord:main Aug 1, 2025
7 checks passed
@kemingy kemingy deleted the user_prompt branch August 1, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant