compact doc

This commit is contained in:
zachary62
2025-03-03 22:32:27 -05:00
parent 355e2573c4
commit 467c9dbbd8
17 changed files with 11 additions and 41 deletions
+1 -2
View File
@@ -77,7 +77,6 @@ class SummarizeNode(Node):
return call_llm(f"Summarize: {text}", self.cur_retry==0)
```
- Enable logging:
```python
@@ -93,4 +92,4 @@ def call_llm(prompt):
I believe it is a **bad practice** to provide LLM-specific implementations in a general framework:
- **LLM APIs change frequently**. Hardcoding them makes maintenance a nightmare.
- You may need **flexibility** to switch vendors, use fine-tuned models, or deploy local LLMs.
- You may need **optimizations** like prompt caching, request batching, or response streaming.
- You may need **optimizations** like prompt caching, request batching, or response streaming.
-1
View File
@@ -68,7 +68,6 @@ def execute_sql(query):
return result
```
> ⚠️ Beware of SQL injection risk
{: .warning }
+1 -3
View File
@@ -137,6 +137,4 @@ data_science_flow = DataScienceFlow(start=data_prep_node)
data_science_flow.run({})
```
The output would be: `Call stack: ['EvaluateModelNode', 'ModelFlow', 'DataScienceFlow']`
The output would be: `Call stack: ['EvaluateModelNode', 'ModelFlow', 'DataScienceFlow']`