error in installing TensorFlow JS on Windows OS
This commit is contained in:
parent
e61e32589b
commit
913eebab4f
|
|
@ -1,19 +0,0 @@
|
|||
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="svg8" version="1.1" viewBox="0 0 30.31081 32.499828" height="122.83399" width="114.56054">
|
||||
<defs id="defs2"/>
|
||||
<metadata id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<dc:title/>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g transform="translate(-77.942529,-177.00005)" id="layer1">
|
||||
<g id="g4550">
|
||||
<path style="fill:#e55b2d;fill-opacity:1" d="m 360.04883,687.87305 v 18.89843 l 32.73047,18.89844 v -18.89844 z m -65.46289,18.89843 v 18.89844 l 16.36523,9.44727 V 716.2207 Z m 49.0957,9.44922 -16.36523,9.44922 v 56.69141 l 16.36523,9.44922 v -37.79493 l 16.36719,9.44922 v -18.89843 l -16.36719,-9.44922 z" transform="scale(0.26458333)" id="path4508"/>
|
||||
<path style="fill:#ed8e24;fill-opacity:1" d="m 360.04883,687.87305 -49.09766,28.34765 v 18.89649 l 32.73047,-18.89649 v 18.89649 l 16.36719,-9.44727 z m 49.09765,9.44922 -16.36718,9.44921 v 18.89844 l 16.36718,-9.44922 z m -32.73242,37.79492 -16.36523,9.44922 v 18.89843 l 16.36523,-9.44922 z m -16.36523,28.34765 -16.36719,-9.44922 v 37.79493 l 16.36719,-9.44922 z" transform="scale(0.26458333)" id="path4491"/>
|
||||
<path style="fill:#f8bf3c;fill-opacity:1" d="m 360.04883,668.97656 -65.46289,37.79492 16.36523,9.44922 49.09766,-28.34765 32.73047,18.89843 16.36718,-9.44921 z m 0,56.69336 -16.36719,9.44727 16.36719,9.44922 16.36523,-9.44922 z" transform="scale(0.26458333)" id="path4506"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
|
|
@ -1,34 +0,0 @@
|
|||
import { INode } from '../../../src/Interface'
|
||||
import { getBaseClasses } from '../../../src/utils'
|
||||
import '@tensorflow/tfjs-node'
|
||||
import { TensorFlowEmbeddings, TensorFlowEmbeddingsParams } from 'langchain/embeddings/tensorflow'
|
||||
|
||||
class TensorFlowEmbedding_Embeddings implements INode {
|
||||
label: string
|
||||
name: string
|
||||
type: string
|
||||
icon: string
|
||||
category: string
|
||||
description: string
|
||||
baseClasses: string[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'TensorFlow Embeddings'
|
||||
this.name = 'tensorFlowEmbeddings'
|
||||
this.type = 'TensorFlowEmbeddings'
|
||||
this.icon = 'TensorFlow.svg'
|
||||
this.category = 'Embeddings'
|
||||
this.description = 'TensorFlow.js to generate embeddings for a given text'
|
||||
this.baseClasses = [this.type, ...getBaseClasses(TensorFlowEmbeddings)]
|
||||
}
|
||||
|
||||
async init(): Promise<any> {
|
||||
const obj: Partial<TensorFlowEmbeddingsParams> = {}
|
||||
|
||||
const model = new TensorFlowEmbeddings(obj)
|
||||
|
||||
return model
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { nodeClass: TensorFlowEmbedding_Embeddings }
|
||||
|
|
@ -20,10 +20,6 @@
|
|||
"@huggingface/inference": "1",
|
||||
"@pinecone-database/pinecone": "^0.0.12",
|
||||
"@supabase/supabase-js": "^2.21.0",
|
||||
"@tensorflow-models/universal-sentence-encoder": "^1.3.3",
|
||||
"@tensorflow/tfjs-converter": "^4.6.0",
|
||||
"@tensorflow/tfjs-core": "^4.6.0",
|
||||
"@tensorflow/tfjs-node": "^4.6.0",
|
||||
"axios": "^0.27.2",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"chromadb": "^1.3.1",
|
||||
|
|
|
|||
Loading…
Reference in New Issue