LLAMA-Ai

 

 AI Model  : Using local model OLLAMA

  • The information provided on this website is intended to provide a basic understanding of certain technologies and is not intended to be a comprehensive guide. 
  • Therefore, it should not be relied upon as the sole source of information and should not be used as a substitute for professional advice or expert analysis.
  • Please exercise caution when visiting or downloading from websites mentioned on this website and verify the safety of the website and software. 
  • Some websites and software may be flagged as malware by antivirus programs.
  • The reader assumes all responsibility for their use of the information contained on this website and any consequences that may arise.
  • The author disclaims any liability for any damages or losses that may result from the use of this website or the information contained herein.
  • The author reserves the right to update or change the information contained on this website at any time without prior notice.
  • Any attempts to perform penetration testing or ethical hacking on systems or networks should be done with the explicit permission of the system/network owner. 
  • Unauthorized access is illegal and can result in serious legal consequences.
  • It is important to fully understand the scope of the testing and to only test within that scope. Testing outside the agreed upon scope is considered unauthorized and may result in legal action.
  • Any findings or vulnerabilities discovered during testing should be reported to the system/network owner immediately and kept confidential until a fix can be implemented.
  • It is recommended to use a separate, dedicated testing environment rather than testing on a live production system to minimize the risk of accidentally causing damage or downtime.
  • It is important to take steps to protect your own identity and prevent accidental data leaks or exposure of sensitive information during testing.
  • It is also recommended to follow a standard code of ethics for ethical hacking and penetration testing.

Contents: 

  • YouTube: Extracting YouTube Transcript  using Fabric framework.
  • Summarizing : Generating summary, extracting insights from the transcripts, using fabric framework
  • Fabric : fabric is an open-source framework for augmenting humans using AI.
    • Downloading Installing Fabric Framework
    • Installing missing files: from warning output. 
    • Installing OLLAMA AI model:
    • Creating Short cuts for copy and paste: 
    • Running AI query to Extract YouTube transcript 
    • Saving YouTube transcript  to File and generating AI queries 


References:

  • danielmiessler: https://github.com/danielmiessler/fabric
  • Network Chuck: https://www.youtube.com/watch?v=UbDyjIIGaxQ&t=657s

************************************************************************************

Fabric Framework:


Downloading: 

  • git clone https://github.com/danielmiessler/fabric.git
  • cd fabric/

Installing Fabric Framework:

  • sudo apt install pipx
  • pipx install .


Refreshing env path: 

  • pipx ensurepath

Refreshing Window: 

  • source ~/.bashrc


pipx install .
pipx install .

Fabric set up:  adding API keys 

  • fabric --setup
  • fabric --list
  • fabric --listmodels


Installing missing files: from warning output. 

 

  • sudo apt install ffmpeg
  • source ~/.bashrc


Installing OLLAMA AI model:

  • sudo apt install curl -y
  • curl -fsSL https://ollama.com/install.sh | sh


Installing OLLAMA AI model:
Installing OLLAMA AI model:



Starting the OLLAMA AI model:

  • ollama run llama3

Starting the OLLAMA AI model:
Starting the OLLAMA AI model:


Starting OLLAMA in Windows: WSL

ollama serve
ollama run llama3

Creating Short cuts for copy and paste: 


  • sudo  nano ~/.bashrc
    • alias pbcopy='xsel --input --clipboard'
    • alias pbpaste='xsel --output --clipboard'
  • source ~/.bashrc


Testing the command:

  • eco "testing" | pbcopy
  • pbpaste


Short cuts for copy and paste:
Short cuts for copy and paste: 


Windows: WSL : Creating Short cuts for copy and paste: 

  • sudo  nano ~/.bashrc
    • alias clip='powershell.exe -c clip.exe'
    • alias past='powershell.exe -c Get-Clipboard'
  • source ~/.bashrc

  • echo "test" | clip
  • past


Changing default model to LLAMA3

  • fabric  --changeDefaultModel llama3:latest
  • source ~/.bashrc
  • fabric --listmodels



Running AI query to Extract YouTube transcript 


  • yt --transcript https://www.youtube.com/watch?v=4TyfNtFGAC4&t=21s | fabric --model llama3:latest  -sp summarize

Extract YouTube transcript
Extract YouTube transcript 


  • yt --transcript https://www.youtube.com/watch?v=4TyfNtFGAC4&t=21s | fabric --model llama3:latest  -sp extract_insights


Copying YouTube transcript to clipboard and generating AI queries 


  • past | fabric --model llama3:latest  -sp summarize

Copying YouTube transcript to clipboard
Copying YouTube transcript to clipboard 



Saving YouTube transcript  to File and generating AI queries 


cat imple271.txt | fabric -sp extract_recommendations
cat imple271.txt | fabric -sp summarize

Saving YouTube transcript  to File
Saving YouTube transcript  to File 



Comments

Popular Posts

Enable additional Security layer for Logging into: Google, Facebook and Twitter

Contacts of Helpline for: Child rescue, Food wastage, blood group

Privacy Settings for windows