|
| 1 | + 🚀 Use Cases Examples 🚀 |
| 2 | +=============== |
| 3 | + |
| 4 | +**End-to-End Scenarios** |
| 5 | + |
| 6 | +In this repository, we feature several 'end-to-end' examples that show how to use LLMWare in a complex recipe combining different elements to accomplish a specific objective. While each example is still high-level, it is shared in the spirit of providing a high-level framework 'starting point' that can be developed in more detail for a variety of common use cases. All of these examples use small, specialized models, running locally - 'Small, but Mighty' ! |
| 7 | + |
| 8 | + |
| 9 | +1. [**Research Automation with Agents and Web Services**](https://www.github.com/llmware-ai/llmware/tree/main/examples/Use_Cases/web_services_slim_fx.py) |
| 10 | + |
| 11 | + - Prepare a 30-key research analysis on a company |
| 12 | + - Extract key lookup and other information from an earnings press release |
| 13 | + - Automatically use the lookup data for real-time stock information from YFinance |
| 14 | + - Automatically use the lookup date for background company history information in Wikipedia |
| 15 | + - Run LLM prompts to ask key questions of the Wikipedia sources |
| 16 | + - Aggregate into a consolidated research analysis |
| 17 | + - All with local open source models |
| 18 | + |
| 19 | + |
| 20 | +2. [**Invoice Processing**](https://www.github.com/llmware-ai/llmware/tree/main/examples/Use_Cases/invoice_processing.py) |
| 21 | + |
| 22 | + - Parse a batch of invoices (provided as sample files) |
| 23 | + - Extract key information from the invoices |
| 24 | + - Save the prompt state for follow-up review and analysis |
| 25 | + |
| 26 | + |
| 27 | +3. [**Analyzing and Extracting Voice Transcripts**](https://www.github.com/llmware-ai/llmware/tree/main/examples/Use_Cases/parsing_great_speeches.py) |
| 28 | + |
| 29 | + - Voice transcription of 50+ wav files of great speeches of the 20th century |
| 30 | + - Run text queries against the transcribed wav files |
| 31 | + - Execute LLM agent inferences to extract and identify key elements of interest |
| 32 | + - Prepare 'bibliography' with the key extracted points, including time-stamp |
| 33 | + |
| 34 | + |
| 35 | +4. [**MSA Processing**](https://www.github.com/llmware-ai/llmware/tree/main/examples/Use_Cases/msa_processing.py) |
| 36 | + |
| 37 | + - Identify the termination provisions in Master Service Agreements among a larger batch of contracts |
| 38 | + - Parse and query a large batch of contracts and identify the agreements with "Master Service Agreement" on the first page |
| 39 | + - Find the termination provisions in each MSA |
| 40 | + - Prompt LLM to read the termination provisions and answer a key question |
| 41 | + - Run a fact-check and source-check on the LLM response |
| 42 | + - Save all of the responses in CSV and JSON for follow-up review. |
| 43 | + |
| 44 | + |
| 45 | +5. [**Querying a CSV**](https://www.github.com/llmware-ai/llmware/tree/main/examples/Use_Cases/agent_with_custom_tables.py) |
| 46 | + |
| 47 | + - Start running natural language queries on CSVs with Postgres and slim-sql-tool. |
| 48 | + - Load a sample 'customer_table.csv' into Postgres |
| 49 | + - Start running natural language queries that get converted into SQL and query the DB |
| 50 | + |
| 51 | + |
| 52 | +6. [**Contract Analysis**](https://www.github.com/llmware-ai/llmware/tree/main/examples/Use_Cases/contract_analysis_on_laptop_with_bling_models.py) |
| 53 | + |
| 54 | + - Extract key information from set of employment agreement |
| 55 | + - Use a simple retrieval strategy with keyword search to identify key provisions and topic areas |
| 56 | + - Prompt LLM to read the key provisions and answer questions based on those source materials |
| 57 | + |
| 58 | + |
| 59 | +Check back often - we are updating these examples regularly - and many of these examples have companion videos as well. |
| 60 | + |
| 61 | + |
| 62 | +### **Let's get started! 🚀** |
| 63 | + |
| 64 | + |
0 commit comments