Skip to content

Commit b81a167

Browse files
committed
Acrolinx updates
1 parent e0f9221 commit b81a167

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

learn-pr/wwl-data-ai/multistage-reasoning-azure-databricks/includes/02-multi-stage-reasoning-concepts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The core idea of multi-stage reasoning systems is that by dividing a problem int
2828

2929
## Design a multi-stage reasoning system
3030

31-
When you think your solution will benefit from implementing a multi-stage reasoning system, you need to map your requirements to the necessary tools and components.
31+
When you think your solution benefits from implementing a multi-stage reasoning system, you need to map your requirements to the necessary tools and components.
3232

3333
To design a multi-stage reasoning system, you break down your problem into multiple steps, or tasks. As shown in the sentiment analysis example, you can reuse the output of a previous task as input for a new task, by **chaining** LLM interactions.
3434

@@ -47,8 +47,8 @@ By breaking up your problem and designing a multi-stage reasoning system, you cr
4747
After your initial design is complete, you can choose one of the popular Python libraries to build your multi-stage reasoning system. Understanding multiple frameworks is valuable because:
4848

4949
- **Different approaches**: Each framework takes a unique approach to solving multi-stage reasoning challenges
50-
- **Project requirements**: Your specific use case may favor one framework's strengths over others
51-
- **Team expertise**: Your organization may already have experience with a particular framework
50+
- **Project requirements**: Your specific use case might favor one framework's strengths over others
51+
- **Team expertise**: Your organization might already have experience with a particular framework
5252
- **Integration needs**: Some frameworks integrate better with existing systems or data sources
5353

5454
Azure Databricks provides access to several frameworks designed for multi-stage reasoning:

learn-pr/wwl-data-ai/multistage-reasoning-azure-databricks/includes/03-langchain.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LangChain is an open-source Python library designed to simplify building applications with Large Language Models (LLMs). LangChain provides tools to chain together multiple LLM interactions in a structured workflow. Use this framework when you want to build complex workflows or need access to many pre-built tools and integrations.
1+
LangChain is an open-source Python library designed to simplify building applications with Large Language Models (LLMs). LangChain provides tools to chain together multiple LLM interactions in a structured workflow. Use this framework when you want to build complex workflows or need access to many prebuilt tools and integrations.
22

33
LangChain abstracts the complexity of connecting different steps in your reasoning pipeline, allowing you to focus on designing the logic rather than managing the technical details of how components communicate.
44

@@ -29,7 +29,7 @@ Well-designed prompts ensure each stage of your reasoning process produces the r
2929

3030
### Find context with a retriever
3131

32-
A **retriever** finds and returns relevant information from external sources like documents or databases. In multi-stage reasoning, retrievers typically gather context that subsequent language model operations will use to generate responses.
32+
A **retriever** finds and returns relevant information from external sources like documents or databases. In multi-stage reasoning, retrievers typically gather context that subsequent language model operations use to generate responses.
3333

3434
Retrievers often work with **vector indices** and **embeddings** to find semantically similar content. Embeddings convert text into numerical vectors that capture meaning, while vector indices enable fast similarity searches across large datasets.
3535

@@ -50,7 +50,7 @@ To use LangChain in Azure Databricks, you need to ensure the library is installe
5050
%pip install langchain
5151
```
5252

53-
Once installed, you can use LangChain to build multi-stage reasoning systems. Here's how you can structure a simple multi-stage workflow:
53+
Once installed, you can use LangChain to build multi-stage reasoning systems. Here's how you can structure a multi-stage workflow:
5454

5555
### Conceptual Example: Question Answering with Document Search
5656

learn-pr/wwl-data-ai/multistage-reasoning-azure-databricks/includes/06-dspy-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**DSPy** is a framework that helps you build programs with Large Language Models (LLMs) by focusing on what you want the model to do rather than how to prompt it. Instead of manually writing and adjusting prompts, DSPy automatically optimizes prompts and system performance for you. Use this framework when you want systematic optimization of your LLM interactions rather than manual prompt engineering.
22

3-
DSPy treats LLM interactions as programmable modules that can be composed, optimized, and reused. When building multi-stage reasoning systems, DSPy lets you declare the behavior you need at each stage (using signatures) and automatically finds the best way to prompt the LLM to achieve that behavior.
3+
DSPy treats LLM interactions as programmable modules that can be composed, optimized, and reused. When you build multi-stage reasoning systems, DSPy lets you declare the behavior you need at each stage (using signatures) and automatically finds the best way to prompt the LLM to achieve that behavior.
44

55
## Explore the main components of DSPy
66

0 commit comments

Comments
 (0)