Update tools.py
Browse files
tools.py
CHANGED
|
@@ -135,10 +135,13 @@ def build_graph(csv_file_path: str = "embeddings.csv"):
|
|
| 135 |
|
| 136 |
from langchain_community.llms import HuggingFaceEndpoint
|
| 137 |
|
|
|
|
|
|
|
|
|
|
| 138 |
llm = HuggingFaceEndpoint(
|
| 139 |
-
endpoint_url="https://api.
|
| 140 |
-
huggingfacehub_api_token="agents_token",
|
| 141 |
-
model_kwargs={"
|
| 142 |
)
|
| 143 |
|
| 144 |
|
|
|
|
| 135 |
|
| 136 |
from langchain_community.llms import HuggingFaceEndpoint
|
| 137 |
|
| 138 |
+
from langchain_community.llms import HuggingFaceEndpoint
|
| 139 |
+
import os
|
| 140 |
+
|
| 141 |
llm = HuggingFaceEndpoint(
|
| 142 |
+
endpoint_url="https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct",
|
| 143 |
+
huggingfacehub_api_token=os.environ["agents_token"],
|
| 144 |
+
model_kwargs={"max_new_tokens": 512}
|
| 145 |
)
|
| 146 |
|
| 147 |
|