mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 11:02:37 +00:00
LLaMA2 with JSON schema support template (#12435)
This commit is contained in:
13
templates/llama2-functions/README.md
Normal file
13
templates/llama2-functions/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Extraction with LLaMA2 Function Calling
|
||||
|
||||
This template shows how to do extraction of structured data from unstructured data, using LLaMA2 [fine-tuned for grammars and jsonschema](https://replicate.com/andreasjansson/llama-2-13b-chat-gguf).
|
||||
|
||||
Specify the scehma you want to extract in `chain.py`
|
||||
|
||||
By default, it will extract the title and author of papers.
|
||||
|
||||
## LLM
|
||||
|
||||
This template will use `Replicate` [hosted version](https://replicate.com/andreasjansson/llama-2-13b-chat-gguf) of LLaMA.
|
||||
|
||||
Be sure that `REPLICATE_API_TOKEN` is set in your environment.
|
Reference in New Issue
Block a user