Conversation
…base URL configuration
… for https_url and commit_id, and improve code comments for clarity
…e relationships to Neo4j and improve batch processing
…ove batch processing readability
…e exception type and stack trace during retries
…tput_tokens settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces updates to improve code maintainability, enhance error logging, and align configurations with environment variables. Key changes include updates to environment variable names, enhancements in error handling, and refactoring of Neo4j-related methods.
Configuration Updates:
README.mdto align with the new naming convention, such as replacingPROMETHEUS_OPENAI_API_KEYwithPROMETHEUS_OPENAI_FORMAT_API_KEYand addingPROMETHEUS_OPENAI_FORMAT_BASE_URLfor LLMs.test_model_responseinprometheus/script/test_llm_service.pyto use dynamic settings fortemperatureandmax_output_tokensinstead of hardcoded values.Error Handling Enhancements:
context_retrieval_subgraph_node.pyto include exception type and stack trace for better debugging during context retrieval failures.tracebackmodule import to support detailed error logging.Code Refactoring:
write_parent_of_edgesmethod inknowledge_graph_handler.pyto simplify the query logic and improve transaction handling by batching and using a session-based approach.knowledge_graph_handler.pyto improve code cleanliness. [1] [2]Type Annotations:
MetadataNodeingraph_types.pyto allowhttps_urlandcommit_idto beNone, reflecting optional values.Functional Improvements:
upload_github_repositoryinservice_coordinator.pyto clear the existing knowledge graph and repository state before cloning a new repository.