Skip to content

Commit a83b675

Browse files
committed
ollama dockerfile added
1 parent da8a963 commit a83b675

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Use an official Python runtime as a base image
21
FROM python:3.13-bookworm
32

43
WORKDIR /app

Dockerfile_ollama

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Use the official Ollama base image
2+
FROM ollama/ollama
3+
4+
# docker run --rm --name yoyomaskr_ollama -d -v /Users/thomas/.ollama:/root/.ollama -p 11434:11434 yoyomaskr_ollama

yoyomaskr.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 1,
12+
"execution_count": 5,
1313
"metadata": {},
1414
"outputs": [
1515
{
1616
"data": {
1717
"text/plain": [
18-
"\"LangChain is a popular open-source framework for building blockchain-based applications, particularly focused on the Ethereum ecosystem.\\n\\nTo understand what LangChain does, let's break it down:\\n\\n1. **Blockchain platform**: LangChain is built on top of Web3.js and utilizes the Ethereum blockchain as its foundation. This allows developers to create smart contracts and interact with blockchain data.\\n2. **Decentralized data storage**: LangChain provides a decentralized data storage solution using IPFS (InterPlanetary File System). This enables seamless data sharing, collaboration, and version control across multiple nodes on the network.\\n3. **Smart contract development**: The framework offers a set of tools and libraries for developing smart contracts, making it easier to create, deploy, and manage blockchain-based applications.\\n4. **Decentralized application (dApp) building**: LangChain is designed to help developers build dApps that can interact with the blockchain, enabling features like data storage, smart contract invocation, and decentralized governance.\\n\\nIn summary, LangChain is a comprehensive framework for building blockchain-based applications, providing tools and libraries for developing smart contracts, storing data in a decentralized manner, and creating decentralized applications on top of the Ethereum network.\""
18+
"'To answer the question \"What is LangChain?\", let\\'s break it down step by step.\\n\\nLangChain is an open-source, Python-based framework that enables developers to build and integrate blockchain data pipelines into their existing applications. Here\\'s a step-by-step explanation:\\n\\n1. **Blockchain integration**: LangChain allows developers to easily connect their applications with various blockchain platforms, such as Ethereum, Polkadot, or Solana.\\n2. **Data pipeline management**: The framework provides tools for building and managing data pipelines that process and transform blockchain data in real-time.\\n3. **Smart contract interactions**: LangChain enables seamless interactions with smart contracts on different blockchain networks, allowing developers to automate tasks, execute transactions, and retrieve data from the blockchain.\\n4. **Decentralized data storage**: The framework supports decentralized data storage solutions like InterPlanetary File System (IPFS) or Swarm, which enable secure and scalable storage of blockchain data.\\n5. **Python-based development**: LangChain is built using Python, making it accessible to developers with experience in this language.\\n\\nBy integrating these features, LangChain provides a comprehensive platform for building blockchain-enabled applications that can efficiently process, store, and manage data from various blockchain sources.'"
1919
]
2020
},
21-
"execution_count": 1,
21+
"execution_count": 5,
2222
"metadata": {},
2323
"output_type": "execute_result"
2424
}

0 commit comments

Comments
 (0)