add main.py

This commit is contained in:
2026-05-25 21:02:21 +00:00
parent 82a2e27cbb
commit 84c6a4c6b7
+33
View File
@@ -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. **Handson** 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?"))
```