all AI news
Implementing a few-shot template using Langchain and Llama (keywords extraction)
Sept. 9, 2023, 10:10 a.m. | /u/International-Shirt5
Natural Language Processing www.reddit.com
```
model_id = 'meta-llama/Llama-2-13b-chat-hf'
device = f'cuda:{cuda.current_device()}' if cuda.is_available() else 'cpu'; print(device)
from langchain import PromptTemplate, LLMChain
from langchain.prompts.few_shot import FewShotPromptTemplate
examples = [
{
"Text": "data warehouse zoom meeting participants",
"Keywords":
"""
- "data …
chat data data warehouse extraction generate keywords langchain languagetechnology llama meta template warehouse zoom
More from www.reddit.com / Natural Language Processing
Introducing Denser Retriever: Cutting-Edge AI Retriever for RAG
1 day, 17 hours ago |
www.reddit.com
Fine tune Mistral v3.0 with Your Data
6 days, 4 hours ago |
www.reddit.com
Any lessons to be mindful of building a production-level RAG?
6 days, 23 hours ago |
www.reddit.com
Jobs in AI, ML, Big Data
Senior Machine Learning Engineer
@ GPTZero | Toronto, Canada
ML/AI Engineer / NLP Expert - Custom LLM Development (x/f/m)
@ HelloBetter | Remote
Doctoral Researcher (m/f/div) in Automated Processing of Bioimages
@ Leibniz Institute for Natural Product Research and Infection Biology (Leibniz-HKI) | Jena
Seeking Developers and Engineers for AI T-Shirt Generator Project
@ Chevon Hicks | Remote
Principal Data Architect - Azure & Big Data
@ MGM Resorts International | Home Office - US, NV
GN SONG MT Market Research Data Analyst 11
@ Accenture | Bengaluru, BDC7A