Converter
langchainjs
Converter | langchainjs | |
---|---|---|
7 | 20 | |
234 | 15,525 | |
0.4% | 1.8% | |
4.9 | 9.9 | |
about 1 year ago | 4 days ago | |
Scala | TypeScript | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Converter
- Is there any project on langchain with scala
-
st-material-ui - Material UI 5 for Scala 3
The longer story is that st-material-ui incorporates https://github.com/ScalablyTyped/Converter/pull/487 in order to get much, much cleaner API. You'll probably have seen the fake literal types, some rewriting from type unions to inheritance, things like that.
-
State of Scala.js frameworks
Given that you want interoperability with js, I'd start by playing with https://scalablytyped.org/, then, play with the scalajs-react demos (https://github.com/ScalablyTyped/ScalaJsReactDemos) and the slinky demos (https://github.com/ScalablyTyped/SlinkyDemos). There are some libraries that scalablytyped doesn't support pretty well but you can leverage https://github.com/nafg/scalajs-facades for those.
-
From ES6 to Scala: Basics
ScalaJS is awesome. Really solid and mature project, can totally recommend.
The only thing that can be annoying is when you want to have a typesafe interface and have to write a lot of adapters for javascript libraries.
Fortunately there is even a project that can make use of typescript interfaces for those libraries, so that you can use them from ScalaJS more or less automatically: https://scalablytyped.org/
-
Ask HN: What cutting-edge technology do you use?
I'm using it mostly for full-stack web development with ScalaJS (https://www.scala-js.org) in the frontend (https://outwatch.github.io/docs/readme.html) and in the backend with AWS lambdas.
The ecosystem is currently in the process of porting all the libraries to Scala 3. So if you're new to Scala, I'd recommend to start with Scala 2, which is rock-solid and already very powerful.
I never worked with SQLAlchemy. But on the scala database side, popular libraries are Doobie (https://tpolecat.github.io/doobie) and Quill (https://getquill.io). Keep in mind that these are for Scala on the JVM. On the ScalaJS side I'm using the javascript library pg. But I'd like to try if it works well with Prisma soon.
The nice thing about ScalaJS is, that you can use Javascript libraries. And if there are typescript facades, then you can transpile these to Scala and use them in a type safe way (https://scalablytyped.org).
- Scala.js 1.7.0 released with “zero known bugs”
- ScalablyTyped publishes Scala 3 support
langchainjs
-
`wrapOpenAIClientError` function in libs/langchain-openai source code.
You will find the below code in langchainjs/src/utils/openai.ts
-
iife() function in libs/langchain-openai source code.
At line 11 in langchain-openai/src/utils/headers.ts
-
deno.json file in langchainjs source code.
In this article, we will review deno.json file in lanchainjs source code. we will look at:
-
LangGraph vs LlamaIndex Showdown: Who Makes AI Agents Easier in JavaScript?
LangChain.js on GitHub
-
Top 8 Most Popular Open-Source Next.js Boilerplates/Starter
AI: Langchainjs
- 【TypeScript】Displaying ChatGPT-like Streaming Responses with trpc in React
-
Getting started with Valkey using JavaScript
The current implementation uses the node-redis client, but I wanted to try out iovalkey client. I am not a JS/TS expert, but it was simple enough to port the existing implementation.You can refer to the code on GitHub
-
Learning the Basics of Large Language Model (LLM) Applications with LangChainJS
import { GithubRepoLoader } from "langchain/document_loaders/web/github"; import ignore from "ignore"; const loader = new GithubRepoLoader( "https://github.com/langchain-ai/langchainjs", { recursive: false, ignorePaths: ["*.md", "yarn.lock"] } ); const docs = await loader.load(); console.log(docs.slice(0, 3));
-
On the unpredictable nature of LLM output and type safety in LangChain TS
*** all code examples are using LangChain TS on the main branch on September 22nd, 2023 (roughly version 0.0.153).
-
Moving from Typescript and Langchain to Rust and Loops
At the time of the prototype's development, the Langchain GitHub loader sent one request per file to fetch the repository sequentially, leading to prolonged download times. In our case about 2 minutes for the insights.opensauced.pizza repository. This issue was later resolved in hwchase17/langchainjs#2224, enabling parallel requests for faster retrieval.
What are some alternatives?
tyrian - Elm-inspired Scala UI library.
camel - 🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
EnvisEdge - Deploy recommendation engines with Edge Computing
modelfusion - The TypeScript library for building AI applications.
diode - Scala library for managing immutable application model
instructor - structured outputs for llms