diff --git a/docs/notebooks/langchain/README.md b/docs/notebooks/langchain/README.md index fb0fe21a7..b72a5e65b 100644 --- a/docs/notebooks/langchain/README.md +++ b/docs/notebooks/langchain/README.md @@ -123,14 +123,13 @@ import requests # Process a document response = requests.post( "http://localhost:8000/process", - json={"source": "https://en.wikipedia.org/wiki/Deep_learning"} + json={"source": "https://en.wikipedia.org/wiki/Deep_learning"}, ) print(response.json()) # Ask a question response = requests.post( - "http://localhost:8000/ask", - json={"question": "What are neural networks?"} + "http://localhost:8000/ask", json={"question": "What are neural networks?"} ) print(response.json()) @@ -180,6 +179,7 @@ To change the model, edit the `model_id` parameter in the respective files. To enable verbose logging, add this to the beginning of either file: ```python import logging + logging.basicConfig(level=logging.DEBUG) ``` diff --git a/docs/notebooks/langchain/langchain-llama-stack.py b/docs/notebooks/langchain/langchain-llama-stack.py index 99e4ebab6..d67f23f50 100644 --- a/docs/notebooks/langchain/langchain-llama-stack.py +++ b/docs/notebooks/langchain/langchain-llama-stack.py @@ -1,3 +1,9 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the terms described in the LICENSE file in +# the root directory of this source tree. + import html import os import re