add main.py
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Personal AI Fluency Plan
|
||||
|
||||
## Overview
|
||||
This plan outlines the steps to develop AI fluency using the framework from the Ai Fluency course.
|
||||
|
||||
## Goals
|
||||
1. Understand core concepts of AI fluency.
|
||||
2. Apply LangChain and LangGraph to build simple agents.
|
||||
3. Create a personal learning roadmap.
|
||||
|
||||
## Plan
|
||||
1. **Foundations** – Complete the course modules.
|
||||
2. **Hands‑on** – Build a small LangChain chain that answers a question.
|
||||
3. **LangGraph** – Create a graph that routes queries to different tools.
|
||||
4. **Reflection** – Document lessons learned and next steps.
|
||||
|
||||
## Deliverable
|
||||
A written plan (this file) and a minimal working example in `main.py`.
|
||||
|
||||
## Example Code
|
||||
```python
|
||||
from langchain import OpenAI, LLMChain
|
||||
from langchain.prompts import PromptTemplate
|
||||
|
||||
prompt = PromptTemplate(
|
||||
input_variables=["question"],
|
||||
template="Answer the following question concisely: {question}"
|
||||
)
|
||||
llm = OpenAI(temperature=0.7)
|
||||
chain = LLMChain(llm=llm, prompt=prompt)
|
||||
|
||||
print(chain.run(question="What is AI fluency?"))
|
||||
```
|
||||
Reference in New Issue
Block a user