url::Langtrace
pip install langtrace-python-sdk
from langtrace_python_sdk import langtrace langtrace.init(api_key = 'd14167f87f6d8eefc3fcdd1acd9ef3eda021bcb95f83f2b4448556cc324507e4')
from langtrace_python_sdk import langtrace
url::Langtrace
pip install langtrace-python-sdk
from langtrace_python_sdk import langtrace langtrace.init(api_key = 'd14167f87f6d8eefc3fcdd1acd9ef3eda021bcb95f83f2b4448556cc324507e4')
from langtrace_python_sdk import langtrace
import gradio as gr | |
# Define a simple function | |
def add_numbers(a, b): | |
return a + b | |
# Create a Gradio interface | |
iface = gr.Interface(fn=add_numbers, inputs=["number", "number"], outputs="number") | |
# Launch the interface with API enabled |
abacusai | |
datasets | |
huggingface_hub | |
langchain | |
sentence-transformers | |
faiss-cpu | |
serpapi | |
google-search-results | |
openai | |
langchain |
pip install huggingface-hub gradio llama-cpp-python \\n--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu | |
huggingface-cli login | |
mkdir models | |
cd models | |
huggingface-cli download Qwen/Qwen2-0.5B-Instruct-GGUF \\nqwen2-0_5b-instruct-q5_k_m.gguf \\n--local-dir . --local-dir-use-symlinks False | |
cd .. | |
touch server.py |
References link | |
https://www.youtube.com/watch?v=PuHP3kktmQI&list=LL | |
https://github.com/dmagda/openai-cookbook/blob/main/examples/vector_databases/postgresql/getting_started_with_postgresql_pgvector.ipynb | |
##--------------------- | |
FROM postgres:latest | |
# Install the plpython3u extension |
CHAT_CACHE_PATH=/var/folders/js/sr76kddd4c71st4s75jlj5fc0000gn/T/chat_cache | |
CACHE_PATH=/var/folders/js/sr76kddd4c71st4s75jlj5fc0000gn/T/cache | |
CHAT_CACHE_LENGTH=100 | |
CACHE_LENGTH=100 | |
REQUEST_TIMEOUT=60 | |
DEFAULT_MODEL=llama3-70b-8192 | |
DEFAULT_COLOR=magenta | |
ROLE_STORAGE_PATH=/Users/rajivmehtapy/.config/shell_gpt/roles | |
DEFAULT_EXECUTE_SHELL_CMD=false | |
DISABLE_STREAMING=false |
brew install awscli | |
aws configure | |
aws s3 ls | |
sudo apt install s3fs tree -y && mkdir s3data && s3fs incite-client-data ./s3data | |
cd s3data/ | |
ls -alr | |
apt install tree | |
tree |
mkdir ollama-quntization | |
cd ollama-quntization/ | |
bash <(curl -sSL https://g.bodaay.io/hfd) -h | |
./hfdownloader -m TinyLlama/TinyLlama-1.1B-Chat-v1.0 | |
sudo apt install tree | |
tree | |
touch Modelfile | |
ollama create -f Modelfile tinyllama | |
ollama cp tinyllama rajivmehtapy/tinyllama | |
ollama list |