You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const model =newChatAnthropic({ model: "claude-3-sonnet-20240229" });
663
664
@@ -673,6 +674,8 @@ for await (const chunk of stream) {
673
674
gathered=concat(gathered, chunk);
674
675
}
675
676
}
677
+
678
+
console.log(gathered);
676
679
```
677
680
678
681
For models (or other components) that don't support streaming natively, this iterator would just yield a single chunk, but
@@ -1085,6 +1088,24 @@ Table columns:
1085
1088
| Token |[many classes](/docs/how_to/split_by_token/)| Tokens || Splits text on tokens. There exist a few different ways to measure tokens. |
1086
1089
| Character |[CharacterTextSplitter](/docs/how_to/character_text_splitter/)| A user defined character || Splits text based on a user defined character. One of the simpler methods. |
Evaluation is the process of assessing the performance and effectiveness of your LLM-powered applications.
1096
+
It involves testing the model's responses against a set of predefined criteria or benchmarks to ensure it meets the desired quality standards and fulfills the intended purpose.
1097
+
This process is vital for building reliable applications.
1098
+
1099
+

1100
+
1101
+
[LangSmith](https://docs.smith.langchain.com/) helps with this process in a few ways:
1102
+
1103
+
- It makes it easier to create and curate datasets via its tracing and annotation features
1104
+
- It provides an evaluation framework that helps you define metrics and run your app against your dataset
1105
+
- It allows you to track results over time and automatically run your evaluators on a schedule or as part of CI/Code
1106
+
1107
+
To learn more, check out [this LangSmith guide](https://docs.smith.langchain.com/concepts/evaluation).
1108
+
1088
1109
### Generative UI
1089
1110
1090
1111
LangChain.js provides a few templates and examples showing off generative UI,
0 commit comments