Skip to content
Snippets Groups Projects
Commit d4312d50 authored by Michael Tutty's avatar Michael Tutty Committed by Marcus Schiesser
Browse files

Resolve PR issues for pinecone-vector-store

parent 95742e77
No related branches found
No related tags found
No related merge requests found
import { VectorStoreIndex } from "../../../packages/core/src/indices/vectorStore/VectorStoreIndex"; import { VectorStoreIndex } from "llamaindex";
import { serviceContextFromDefaults } from "../../../packages/core/src/ServiceContext"; import { serviceContextFromDefaults } from "llamaindex";
import { PineconeVectorStore } from "../../../packages/core/src/storage/vectorStore/PineconeVectorStore"; import { PineconeVectorStore } from "llamaindex";
async function main() { async function main() {
const readline = require("readline").createInterface({ const readline = require("readline").createInterface({
......
import { VectorStore, VectorStoreQuery, VectorStoreQueryResult } from "./types"; import { VectorStore,
VectorStoreQuery,
VectorStoreQueryResult,
ExactMatchFilter,
MetadataFilters } from "./types";
import { ExactMatchFilter, MetadataFilters } from "../../../dist";
import { BaseNode, Document, Metadata, MetadataMode } from "../../Node"; import { BaseNode, Document, Metadata, MetadataMode } from "../../Node";
import { GenericFileSystem } from "../FileSystem"; import { GenericFileSystem } from "../FileSystem";
...@@ -137,9 +140,9 @@ export class PineconeVectorStore implements VectorStore { ...@@ -137,9 +140,9 @@ export class PineconeVectorStore implements VectorStore {
var options: any = { var options: any = {
vector: query.queryEmbedding, vector: query.queryEmbedding,
topK: query.similarityTopK, topK: query.similarityTopK,
// include_values: true, include_values: true,
// include_metadara: true, include_metadara: true,
// filter: filter filter: filter
}; };
const idx = await this.index(); const idx = await this.index();
......
...@@ -28,6 +28,8 @@ module.exports = { ...@@ -28,6 +28,8 @@ module.exports = {
"PINECONE_ENVIRONMENT", "PINECONE_ENVIRONMENT",
"PINECONE_PROJECT_ID", "PINECONE_PROJECT_ID",
"PINECONE_INDEX_NAME", "PINECONE_INDEX_NAME",
"PINECONE_CHUNK_SIZE",
"PINECONE_INDEX_NAME",
"AZURE_OPENAI_API_KEY", "AZURE_OPENAI_API_KEY",
"AZURE_OPENAI_API_INSTANCE_NAME", "AZURE_OPENAI_API_INSTANCE_NAME",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment