url::Langtrace
pip install langtrace-python-sdk
from langtrace_python_sdk import langtrace langtrace.init(api_key = 'd14167f87f6d8eefc3fcdd1acd9ef3eda021bcb95f83f2b4448556cc324507e4')
from langtrace_python_sdk import langtrace
#!/bin/bash | |
# install_terraform.sh | |
# Exit immediately if a command exits with a non-zero status | |
set -e | |
# Update the package index | |
echo "Updating package index..." | |
sudo apt-get update |
import ollama | |
import json | |
show_message_tool: dict = { | |
"name": "show_message", | |
"description": "Display a greeting message with the given parameter", | |
"parameters": [ | |
{ | |
"name": "param", | |
"description": "The parameter to include in the greeting message", |
# %% | |
# !pip install sqlite-vec | |
### [Ref Link](https://alexgarcia.xyz/blog/2024/sqlite-vec-stable-release/index.html) | |
import sqlite3 | |
import sqlite_vec | |
import numpy as np | |
import struct |
In Visual Studio Code, the keyboard shortcuts to move to the previous (and next) cursor location are: | |
For Windows and Linux: | |
Go to previous location: Ctrl + Alt + - (minus) | |
Go to next location: Ctrl + Shift + - (minus) | |
For macOS: | |
Go to previous location: Ctrl + - (minus) | |
Go to next location: Ctrl + Shift + - (minus) |
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 |
give me hello-world style code for call language model for gpt-4o.I'm talking about evaluate_prompt base example | |
User Icon | |
To call a language model for GPT-4O using the evaluate_prompt method, you can use the following example code in Python: | |
!pip install abacusai | |
!pip install fsspec | |
!pip install s3fs | |
from abacusai import ApiClient |