-
Checked other resources
Commit to Help
Example Code// libs/langchain-community/src/llms/ollama.ts
import { createOllamaGenerateStream, OllamaInput } from "../utils/ollama.js"; Descriptionimport is from ollama.js; however all of the locations referenced in the from "...." are ollama.ts Searching the files in langchainjs there is no ollama.js files found. Note: there are many other scripts that import ollama.js System Infoplatform windows11 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @smartdawg! I'm here to assist you with any bugs, questions, or contributions you have for the LangChain.js repository. I'll do my best to help while we wait for a human maintainer. The scripts in the LangChain.js repository are importing Supporting evidence from the document: import { createOllamaGenerateStream, OllamaInput } from "../utils/ollama.js"; This import statement is referring to the compiled JavaScript file |
Beta Was this translation helpful? Give feedback.
Hey @smartdawg! I'm here to assist you with any bugs, questions, or contributions you have for the LangChain.js repository. I'll do my best to help while we wait for a human maintainer.
The scripts in the LangChain.js repository are importing
ollama.js
because the compiled JavaScript files have a.js
extension, even though the source files are written in TypeScript with a.ts
extension. This is a common practice in TypeScript projects where the TypeScript files are transpiled to JavaScript files for execution.Supporting evidence from the document:
This import statement is referring to the compiled JavaScript f…