-
Notifications
You must be signed in to change notification settings - Fork 47
Update demo-intrinsic to build granite3-rag #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f6e345e
PDLify demo-halluncination example
jgchn d33c60d
Merge remote-tracking branch 'upstream/main' into demo
jgchn a840ec7
Update example result
jgchn 9d0bcfa
Merge remote-tracking branch 'upstream/main' into demo
jgchn c73078a
Update live traces
jgchn b0f0d8a
Halluncination demo wip
jgchn 6dd7174
Test if demo passes GHA
jgchn 851b5c4
Revert halluncination in example run
jgchn 5e62529
Merge remote-tracking branch 'upstream/main' into demo
jgchn 2fc26d5
Fix example
jgchn d048dd5
Import
jgchn 110c528
Merge remote-tracking branch 'upstream/main' into demo
jgchn 372f55e
Update UI script
jgchn d2cd20b
Update command block
jgchn 0a687a0
Fix pre-commit errors
jgchn d2e6812
Static check fix
jgchn 7b7dc44
Static check fix 2
jgchn 0f0035c
Merge remote-tracking branch 'upstream/main' into demo
jgchn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,4 +165,7 @@ src/pdl/_version.py | |
| *~ | ||
|
|
||
| # Mac | ||
| .DS_Store | ||
| .DS_Store | ||
|
|
||
| # Model files | ||
| *.gguf | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {"kind": "text", "pdl__id": "text", "description": "Simple LLM interaction", "defs": {}, "text": [{"kind": "data", "pdl__id": "text.0", "defs": {}, "data": "write a hello world example, and explain to me how to run it", "pdl__result": "write a hello world example, and explain to me how to run it", "pdl__timing": {"start_nanos": 1741307359368839000, "end_nanos": 1741307359369389000, "timezone": "EST"}, "pdl__is_leaf": true}, {"kind": "model", "pdl__id": "text.1.model", "context": [{"role": "user", "content": "write a hello world example, and explain to me how to run it", "defsite": "text.0"}], "defs": {}, "platform": "litellm", "model": "ollama_chat/granite3.2:2b", "pdl__result": "Sure, I'd be happy to help with that! Here's a simple \"Hello, World!\" program in Python, which is one of the most popular programming languages:\n\n```python\nprint(\"Hello, World!\")\n```\n\nTo run this code, follow these steps:\n\n1. **Install Python**: If you haven't already installed Python on your computer, download it from the official website (https://www.python.org/downloads/). Choose the latest version of Python 3 for Windows, macOS, or Linux. During installation, make sure to check the box that says \"Add Python to PATH\" (for Windows) or ensure that the correct interpreter is selected during setup (for macOS and Linux).\n\n2. **Open a Text Editor**: Use any text editor like Notepad (for Windows), TextEdit (for macOS), or Visual Studio Code, Sublime Text, Atom, etc. for writing your Python code.\n\n3. **Write the Code**: Copy and paste the following line into your text editor:\n\n ```python\n print(\"Hello, World!\")\n ```\n\n4. **Save the File**: Save this file with a `.py` extension, such as `hello_world.py`. For example, if you're using Notepad on Windows, save it as `hello_world.py`.\n\n5. **Open Command Prompt/Terminal**: On Windows, press `Win + R`, type `cmd`, and hit Enter. On macOS or Linux, open Terminal from the Applications > Utilities folder or by searching for \"Terminal\" in Spotlight.\n\n6. **Navigate to Your File's Location**: Use the `cd` command (for Command Prompt on Windows) or `cd` followed by your file path (for Terminal on macOS and Linux). For instance, if you saved the file in the Desktop folder:\n\n ```\n cd Desktop\n ```\n\n7. **Run the Python Script**: Type `python hello_world.py` (for Command Prompt on Windows) or `python3 hello_world.py` (for Terminal on macOS and Linux), then press Enter. You should see the output \"Hello, World!\" displayed in your terminal window.\n\nThat's it! You've just run a simple Python program. This example demonstrates how to print text using the built-in `print()` function.", "pdl__timing": {"start_nanos": 1741307359418667000, "end_nanos": 1741307365945797000, "timezone": "EST"}, "pdl__is_leaf": true}], "pdl__result": "write a hello world example, and explain to me how to run itSure, I'd be happy to help with that! Here's a simple \"Hello, World!\" program in Python, which is one of the most popular programming languages:\n\n```python\nprint(\"Hello, World!\")\n```\n\nTo run this code, follow these steps:\n\n1. **Install Python**: If you haven't already installed Python on your computer, download it from the official website (https://www.python.org/downloads/). Choose the latest version of Python 3 for Windows, macOS, or Linux. During installation, make sure to check the box that says \"Add Python to PATH\" (for Windows) or ensure that the correct interpreter is selected during setup (for macOS and Linux).\n\n2. **Open a Text Editor**: Use any text editor like Notepad (for Windows), TextEdit (for macOS), or Visual Studio Code, Sublime Text, Atom, etc. for writing your Python code.\n\n3. **Write the Code**: Copy and paste the following line into your text editor:\n\n ```python\n print(\"Hello, World!\")\n ```\n\n4. **Save the File**: Save this file with a `.py` extension, such as `hello_world.py`. For example, if you're using Notepad on Windows, save it as `hello_world.py`.\n\n5. **Open Command Prompt/Terminal**: On Windows, press `Win + R`, type `cmd`, and hit Enter. On macOS or Linux, open Terminal from the Applications > Utilities folder or by searching for \"Terminal\" in Spotlight.\n\n6. **Navigate to Your File's Location**: Use the `cd` command (for Command Prompt on Windows) or `cd` followed by your file path (for Terminal on macOS and Linux). For instance, if you saved the file in the Desktop folder:\n\n ```\n cd Desktop\n ```\n\n7. **Run the Python Script**: Type `python hello_world.py` (for Command Prompt on Windows) or `python3 hello_world.py` (for Terminal on macOS and Linux), then press Enter. You should see the output \"Hello, World!\" displayed in your terminal window.\n\nThat's it! You've just run a simple Python program. This example demonstrates how to print text using the built-in `print()` function.", "pdl__timing": {"start_nanos": 1741307359368794000, "end_nanos": 1741307365945859000, "timezone": "EST"}, "pdl__is_leaf": false} | ||
| {"kind": "text", "id": "text", "pdl__timing": {"start_nanos": 1741364950729177000, "end_nanos": 1741364958625818000, "timezone": "EST"}, "description": "Simple LLM interaction", "defs": {}, "text": [{"kind": "data", "id": "text.0", "pdl__timing": {"start_nanos": 1741364950729210000, "end_nanos": 1741364950729736000, "timezone": "EST"}, "defs": {}, "data": "write a hello world example, and explain to me how to run it", "result": "write a hello world example, and explain to me how to run it"}, {"kind": "model", "id": "text.1.model", "context": [{"role": "user", "content": "write a hello world example, and explain to me how to run it", "defsite": "text.0"}], "pdl__timing": {"start_nanos": 1741364950767923000, "end_nanos": 1741364958625777000, "timezone": "EST"}, "defs": {}, "platform": "litellm", "model": "ollama_chat/granite3.2:2b", "result": "Sure, I'll provide a simple \"Hello, World!\" program in three different programming languages: Python, JavaScript (using Node.js), and Java. After each code snippet, I'll explain how to run the example on your local machine or an online platform.\n\n**Python:**\n\n```python\nprint(\"Hello, World!\")\n```\n\nTo run this Python program:\n\n1. Save it in a file with a `.py` extension, e.g., `hello_world.py`.\n2. Open your terminal or command prompt.\n3. Navigate to the directory where you saved `hello_world.py`.\n4. Run the following command:\n\n ```\n python hello_world.py\n ```\n\n**JavaScript (Node.js):**\n\n```javascript\nconsole.log(\"Hello, World!\");\n```\n\nTo run this JavaScript code using Node.js:\n\n1. Ensure you have Node.js installed on your machine. You can download it from https://nodejs.org/.\n2. Open a terminal or command prompt.\n3. Navigate to the directory where you saved `hello_world.js`.\n4. Run the following command:\n\n ```\n node hello_world.js\n ```\n\n**Java:**\n\n```java\npublic class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello, World!\");\n }\n}\n```\n\nTo run this Java program, you'll need to follow these steps:\n\n1. Save the code in a file named `HelloWorld.java`.\n2. Install the JDK (Java Development Kit). You can download it from https://adoptopenjdk.net/. Follow the instructions for your operating system.\n3. Set up an environment variable called `JAVA_HOME` and add its path to your `PATH`. This helps Java find the JVM (Java Virtual Machine) on your machine.\n - For Windows:\n ```cmd\n setx /M JAVA_HOME \"path\\to\\your\\jdk\"\n set PATH=%JAVA_HOME%\\bin;%PATH%\n ```\n - For macOS/Linux:\n ```bash\n export JAVA_HOME=\"/path/to/your/jdk\"\n export PATH=\"$JAVA_HOME/bin:$PATH\"\n ```\n4. Open a terminal or command prompt.\n5. Navigate to the directory where you saved `HelloWorld.java`.\n6. Run the following command:\n\n ```\n javac HelloWorld.java\n ```\n This step compiles your Java code into bytecode (.class files).\n7. After successful compilation, run this command:\n\n ```\n java HelloWorld\n ```\n\nNow, you should see \"Hello, World!\" printed in the terminal or command prompt."}], "result": "write a hello world example, and explain to me how to run itSure, I'll provide a simple \"Hello, World!\" program in three different programming languages: Python, JavaScript (using Node.js), and Java. After each code snippet, I'll explain how to run the example on your local machine or an online platform.\n\n**Python:**\n\n```python\nprint(\"Hello, World!\")\n```\n\nTo run this Python program:\n\n1. Save it in a file with a `.py` extension, e.g., `hello_world.py`.\n2. Open your terminal or command prompt.\n3. Navigate to the directory where you saved `hello_world.py`.\n4. Run the following command:\n\n ```\n python hello_world.py\n ```\n\n**JavaScript (Node.js):**\n\n```javascript\nconsole.log(\"Hello, World!\");\n```\n\nTo run this JavaScript code using Node.js:\n\n1. Ensure you have Node.js installed on your machine. You can download it from https://nodejs.org/.\n2. Open a terminal or command prompt.\n3. Navigate to the directory where you saved `hello_world.js`.\n4. Run the following command:\n\n ```\n node hello_world.js\n ```\n\n**Java:**\n\n```java\npublic class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello, World!\");\n }\n}\n```\n\nTo run this Java program, you'll need to follow these steps:\n\n1. Save the code in a file named `HelloWorld.java`.\n2. Install the JDK (Java Development Kit). You can download it from https://adoptopenjdk.net/. Follow the instructions for your operating system.\n3. Set up an environment variable called `JAVA_HOME` and add its path to your `PATH`. This helps Java find the JVM (Java Virtual Machine) on your machine.\n - For Windows:\n ```cmd\n setx /M JAVA_HOME \"path\\to\\your\\jdk\"\n set PATH=%JAVA_HOME%\\bin;%PATH%\n ```\n - For macOS/Linux:\n ```bash\n export JAVA_HOME=\"/path/to/your/jdk\"\n export PATH=\"$JAVA_HOME/bin:$PATH\"\n ```\n4. Open a terminal or command prompt.\n5. Navigate to the directory where you saved `HelloWorld.java`.\n6. Run the following command:\n\n ```\n javac HelloWorld.java\n ```\n This step compiles your Java code into bytecode (.class files).\n7. After successful compilation, run this command:\n\n ```\n java HelloWorld\n ```\n\nNow, you should see \"Hello, World!\" printed in the terminal or command prompt."} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.