Skip to content
Snippets Groups Projects
Commit a1c45294 authored by Sourabh Desai's avatar Sourabh Desai
Browse files

updates for compilation errors

parent c2ef5057
No related branches found
No related tags found
No related merge requests found
...@@ -12,4 +12,6 @@ async function main() { ...@@ -12,4 +12,6 @@ async function main() {
console.log(response.toString()); console.log(response.toString());
} }
main().catch(console.error); main().catch((e: Error) => {
console.error(e, e.stack);
});
...@@ -88,9 +88,16 @@ export interface VectorIndexOptions { ...@@ -88,9 +88,16 @@ export interface VectorIndexOptions {
storageContext?: StorageContext; storageContext?: StorageContext;
} }
interface VectorIndexConstructorProps extends BaseIndexInit<IndexDict> {
vectorStore: VectorStore;
}
export class VectorStoreIndex extends BaseIndex<IndexDict> { export class VectorStoreIndex extends BaseIndex<IndexDict> {
private constructor(init: BaseIndexInit<IndexDict>) { vectorStore: VectorStore;
private constructor(init: VectorIndexConstructorProps) {
super(init); super(init);
this.vectorStore = init.vectorStore;
} }
static async init(options: VectorIndexOptions): Promise<VectorStoreIndex> { static async init(options: VectorIndexOptions): Promise<VectorStoreIndex> {
......
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