Skip to content

Commit

Permalink
Merge pull request #18 from lmnr-ai/rust-1.81
Browse files Browse the repository at this point in the history
upgrade rust to v1.81
  • Loading branch information
dinmukhamedm authored Oct 5, 2024
2 parents d97bbde + 56b06ee commit 811a242
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,9 @@ if __name__ == "__main__":

#### Sending events

You can send events in two ways:
- `.event(name, value)` – instant event with a value.
- `.evaluate_event(name, evaluator, data)` – event that is evaluated by evaluator pipeline based on the data.
To send an evant, call `L.event(name, value)`.

Note that to run an evaluate event, you need to crate an evaluator pipeline and create a target version for it.

Laminar processes background job queues of pipeline processes and records outputs of pipelines as events.

Read our [docs](https://docs.lmnr.ai) to learn more about event types and how they are created and evaluated.
Read our [docs](https://docs.lmnr.ai) to learn more about events and how they are created.

```python
from lmnr import Laminar as L
Expand All @@ -116,11 +110,6 @@ poem = response.choices[0].message.content

# this will register True or False value with Laminar
L.event("topic alignment", topic in poem)

# this will run the pipeline `check_wordy` with `poem` set as the value
# of `text_input` node, and write the result as an event with name
# "excessive_wordiness"
L.evaluate_event("excessive_wordiness", "check_wordy", {"text_input": poem})
```

#### Laminar pipelines as prompt chain managers
Expand Down
2 changes: 1 addition & 1 deletion app-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uses the bullseye-slim debian image per the rust recommendation.
FROM rust:1.80-slim-bullseye AS builder
FROM rust:1.81-slim-bullseye AS builder

# Install g++ and other build essentials for compiling openssl/tls dependencies
RUN apt update
Expand Down
2 changes: 1 addition & 1 deletion semantic-search-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This dockerfile is used to build the semantic-search-service binary

# Uses the bullseye-slim debian image per the rust recommendation.
FROM rust:1.80-slim-bullseye AS builder
FROM rust:1.81-slim-bullseye AS builder

# Install g++ and other build essentials for compiling openssl/tls dependencies
RUN apt update
Expand Down

0 comments on commit 811a242

Please sign in to comment.