Skip to content

Commit

Permalink
Merge pull request #3 from baloise/main
Browse files Browse the repository at this point in the history
ollama dockerfile added
  • Loading branch information
trichie authored Oct 28, 2024
2 parents 665a7be + a83b675 commit cc39f62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Use an official Python runtime as a base image
FROM python:3.13-bookworm

WORKDIR /app
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile_ollama
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Use the official Ollama base image
FROM ollama/ollama

# docker run --rm --name yoyomaskr_ollama -d -v /Users/thomas/.ollama:/root/.ollama -p 11434:11434 yoyomaskr_ollama
6 changes: 3 additions & 3 deletions yoyomaskr.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"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.\""
"'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.'"
]
},
"execution_count": 1,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit cc39f62

Please sign in to comment.