https://github.com/cloudsteak/langchain-solutions
https://github.com/cloudsteak/langchain-solutions
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudsteak/langchain-solutions
- Owner: cloudsteak
- Created: 2024-07-24T15:39:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T12:45:02.000Z (almost 2 years ago)
- Last Synced: 2024-07-27T08:52:33.270Z (almost 2 years ago)
- Language: Jupyter Notebook
- Size: 112 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LangChain Solutions
Basic LangChain solutions
## Prerequisites
### 1. Poetry
1. Ensure that you have Poetry installed on your system. You can install it using the following command:
```bash
curl -sSL https://install.python-poetry.org | python3 -
```
2. Add Poetry to path
- On Linux
```bash
echo $'\nexport PATH="/home/jovyan/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```
- On Mac
```bash
echo $'\nexport PATH="/home/jovyan/.local/bin:$PATH"' >> ~/.zshrc
source ~/.bashrc
```
3. Check result
```bash
poetry --version
```
## Streamlit application
### 1. Create virtual environment
```bash
conda create --prefix ./.venv -y
conda activate ./.venv
```
### 2. Install dependencies
```bash
poetry install --no-root
```
### 3. Run the application
```bash
streamlit run RestaurantGenerator/main.py
```
### 4. Test the application
Open the browser and navigate to `http://localhost:8501/`
### 5. Deactivate the virtual environment
```bash
conda deactivate
```