santokalayil / generative_ai

Generative AI General Library
1 stars 0 forks source link

Generative AI Information #4

Open santokalayil opened 3 weeks ago

santokalayil commented 3 weeks ago

All possible Generative AI information can be put here

flowchart LR;
prompts --> LLM

Some useful links:

santokalayil commented 3 weeks ago

Prompt Engineering

Prompt Templates

Common prompt structures

  1. Instruction based prompts (Zero shot prompting)
  2. Role based prompts
  3. System prompts
  4. Few shot learning prompts (Few short prompting): Provide few examples and expected outputs for them and ask the question directly to LLM
  5. Chain-of-Thought prompting
santokalayil commented 3 weeks ago

Projects Done

santokalayil commented 3 weeks ago

LLMS image

image

santokalayil commented 3 weeks ago

Some Concepts:

Context Window (tokens) : ability to feed data into the LLMs (how much we can feed external data)

santokalayil commented 3 weeks ago

LLM models

Embedding Models

image

santokalayil commented 3 weeks ago

Examples of Vector Databases

  1. Chroma DB - LangChain (Python and JavScript), LlamaIndex, support available
  2. Pinecone
  3. Faiss - By Facebook
santokalayil commented 3 weeks ago

RAG vs CRAG (Corrective) vs RAFT (RAG + finetuning) + PEFT (parameter efficient fine tuning), LORA, QLORA

RAG:

https://python.langchain.com/v0.2/docs/tutorials/rag/

santokalayil commented 3 weeks ago

https://github.com/santokalayil/NLP/blob/main/notebooks/notebook_05_spacy.ipynb

santokalayil commented 3 weeks ago

image Technology Stack for Generative AI

Learn Scikit LLM