Skip to content

Commit

Permalink
Merge pull request #164 from unoplat/163-improve-summarisation-of-rer…
Browse files Browse the repository at this point in the history
…anked-results

163 improve summarisation of reranked results
  • Loading branch information
JayGhiya authored Oct 23, 2024
2 parents 2304f79 + 596df61 commit a84cc68
Show file tree
Hide file tree
Showing 5 changed files with 1,193 additions and 1,022 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ unoplat-code-confluence-query-engine/unoplat_code_confluence_query_engine/widget
unoplat-code-confluence-query-engine/dist
unoplat-code-confluence-query-engine/unoplat_code_confluence_query_engine/__pycache__
unoplat-code-confluence-query-engine/dspy/__pycache__
experiments
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from typing import Dict
import dspy



class CodeConfluenceUserQueryResponseSignature(dspy.Signature):
"""Generate a comprehensive response to the user query using the code metadata."""
"""Generate a comprehensive response with multiple citations to the user query based on the relevant multiple code metadata.Use relevant distinct data points."""
user_query: str = dspy.InputField(desc="The user's original query.")
code_metadata: str = dspy.InputField(desc="The code metadata relevant to the user query.")
existing_respone : str = dspy.InputField(default="No existing response yet",desc="The existing response to the user query based on multiple code metadata. It will be empty in the first instance or if there is just one relevant code metadata for user query")
final_response: str = dspy.OutputField(desc="final response based on user_query , code metadata and existing_response if it exists")
final_response: str = dspy.OutputField(desc="Comprehensive response based on user_query , code metadata and existing_response if it exists")

class CodeConfluenceUserQueryResponseModule(dspy.Module):
def __init__(self):
Expand Down
Loading

0 comments on commit a84cc68

Please sign in to comment.