Skip to content

Commit

Permalink
Merge pull request #3 from tushar2704/development
Browse files Browse the repository at this point in the history
GemmaChat v1.1
  • Loading branch information
tushar2704 committed Feb 29, 2024
2 parents 9c3f4ab + 0bd57c5 commit cad51cc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
# GemmaChat
Smart Chat using Gemma model via Ollama, LangChain and Chainlit

Coming up:Deployment, more feature and custom UI


## Steps to Replicate

1. Fork this repository and create a codespace in GitHub as I showed you in the youtube video OR Clone it locally.
```
git clone https://github.com/tushar2704/GemmaChat.git
cd GemmaChat
```

2. Create a virtualenv and activate it
```
python3 -m venv .venv && source .venv/bin/activate
```

3. OPTIONAL - Rename example.env to .env with `cp example.env .env`and input the environment variables from [LangSmith](https://smith.langchain.com/). You need to create an account in LangSmith website if you haven't already.
```
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="your-api-key"
LANGCHAIN_PROJECT="your-project"
```

4. Run the following command in the terminal to install necessary python packages:
```
pip install -r requirements.txt
```

5. Run the following command in your terminal to start the chat UI:
```
chainlit run main.py
```


4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
python-dotenv
langchain
chainlit
chainlit
langchain_community
openai

0 comments on commit cad51cc

Please sign in to comment.