New feature branch#435
Open
Jess52487 wants to merge 4 commits into
Open
Conversation
|
@Jess52487 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
closes #395
closes #396
closes #397
closes #398
Description
This PR introduces four key LLM-powered features to enhance user interaction, search capabilities, cost efficiency, and response quality within AstroML.
1. Intelligent Autocomplete for Blockchain Queries
GET /api/v1/llm/suggestendpoint.AutocompleteServiceinapi/services/llm_suggest.py.2. Semantic Search for Accounts and Transactions
POST /api/v1/llm/searchendpoint.SemanticSearchServiceinapi/services/llm_search.py.EmbeddingRouter) to semantically match transactions and accounts, with similarity scoring and simple explanations for the results.3. Monitor and Control LLM Costs
GET /api/v1/llm/costs/dashboardendpoint.CostMonitoringServiceinapi/services/llm_cost.pyto monitor token usage and costs across providers (e.g., OpenAI, Anthropic, Local_Llama).4. Evaluate LLM Outputs with Golden Datasets
test_data/golden_datasets.jsoncontaining structured mock examples for blockchain queries, anomaly explanations, and safe responses.tests/test_llm_evaluation.pyto evaluate LLM accuracy (usingdifflib.SequenceMatcher), relevance, and safety.Verification
pytest tests/test_llm_evaluation.pyto ensure evaluation pipelines pass.GET /api/v1/llm/suggest?q=trnsactnto verify typo correction.POST /api/v1/llm/searchto confirm low latency embeddings and semantic matching./costs/dashboardto verify token calculations and alerts.