Sept. 9, 2023, 10:10 a.m. | /u/International-Shirt5

Natural Language Processing www.reddit.com

My goal is as follows: I have main keywords, e.g., "data warehouse zoom meeting participants." I want to input only a specific keyword, and the model would generate more keywords, e.g., "zoom," "meeting," "meeting participants," "company meeting," and so on. My script looks like this:


```
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

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