Go to file
2024-12-26 18:17:32 -05:00
app Se eliminan las herramientas que utilizaban la API de Google, toda vez la implmentacion estaba fallando. Se deja corriendo al Agente con busqueda a internet, el rag y el acceso a la hora y fecha. 2024-12-26 18:17:32 -05:00
packages Deploy: LangServer 2024-10-30 15:08:55 -05:00
.env_example Doc: .env_example 2024-11-01 18:37:21 -05:00
.flake8 Fix: close #1 2024-11-07 16:45:31 -05:00
.gitignore Doc: .gitignore 2024-10-30 13:45:36 -05:00
docker-compose.yml Se realiza una nueva implmentacion para la autenticacion con la api de Google. 2024-11-27 02:13:30 -05:00
Dockerfile Se realiza una nueva implmentacion para la autenticacion con la api de Google. 2024-11-27 02:13:30 -05:00
pyproject.toml Se realiza una nueva implmentacion para la autenticacion con la api de Google. 2024-11-27 02:13:30 -05:00
Rakefile Fix: LangChain Dependences 2024-11-01 22:41:13 -05:00
README.md Deploy: LangServer 2024-10-30 15:08:55 -05:00

assistant

Installation

Install the LangChain CLI if you haven't yet

pip install -U langchain-cli

Adding packages

# adding packages from 
# https://github.com/langchain-ai/langchain/tree/master/templates
langchain app add $PROJECT_NAME

# adding custom GitHub repo packages
langchain app add --repo $OWNER/$REPO
# or with whole git string (supports other git providers):
# langchain app add git+https://github.com/hwchase17/chain-of-verification

# with a custom api mount point (defaults to `/{package_name}`)
langchain app add $PROJECT_NAME --api_path=/my/custom/path/rag

Note: you remove packages by their api path

langchain app remove my/custom/path/rag

Setup LangSmith (Optional)

LangSmith will help us trace, monitor and debug LangChain applications. You can sign up for LangSmith here. If you don't have access, you can skip this section

export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_API_KEY=<your-api-key>
export LANGCHAIN_PROJECT=<your-project>  # if not specified, defaults to "default"

Launch LangServe

langchain serve

Running in Docker

This project folder includes a Dockerfile that allows you to easily build and host your LangServe app.

Building the Image

To build the image, you simply:

docker build . -t my-langserve-app

If you tag your image with something other than my-langserve-app, note it for use in the next step.

Running the Image Locally

To run the image, you'll need to include any environment variables necessary for your application.

In the below example, we inject the OPENAI_API_KEY environment variable with the value set in my local environment ($OPENAI_API_KEY)

We also expose port 8080 with the -p 8080:8080 option.

docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -p 8080:8080 my-langserve-app