Skip to content

Commit

Permalink
fix: print url
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda committed Jan 8, 2025
1 parent 3328762 commit 108a013
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rag-chat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ describe("RAG Chat with Vercel AI SDK", () => {
url: process.env.UPSTASH_VECTOR_REST_URL!,
});

console.log(process.env.UPSTASH_VECTOR_REST_URL?.slice(0, 14));

const redis = new Redis({
token: process.env.UPSTASH_REDIS_REST_TOKEN!,
url: process.env.UPSTASH_REDIS_REST_URL!,
Expand Down Expand Up @@ -826,6 +828,10 @@ describe("RAG Chat with Vercel AI SDK", () => {
});

test("should get result without streaming", async () => {
const info = await vector.info();
const range = await vector.range({ cursor: "", limit: 4, includeData: true }, { namespace });
console.log(info, range);

const result = await ragChat.chat(
"What year was the construction of the Eiffel Tower completed, and what is its height?",
{ streaming: false }
Expand Down

0 comments on commit 108a013

Please sign in to comment.