Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Moss LiveKit Voice Agent

This directory contains a high-performance voice AI agent built with [LiveKit Agents](https://docs.livekit.io/agents) and [Moss](https://usemoss.dev) for real-time semantic retrieval.
This directory contains a high-performance voice AI agent built with [LiveKit Agents](https://docs.livekit.io/agents) and [Moss](https://moss.dev) for real-time semantic retrieval.

The agent acts as a customer support assistant, fetching relevant information from a knowledge base indexed in Moss to provide accurate and low-latency responses.

Expand Down
2 changes: 1 addition & 1 deletion apps/next-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ This demo showcases how to use **Server Actions** to securely interact with Moss

To add Moss to your own Next.js app:

1. Install the SDK: `npm install @inferedge/moss`
1. Install the SDK: `npm install @moss-dev/moss-web`
2. Create a Server Action (see `app/actions.ts`).
3. Call the action from your React components.
4 changes: 2 additions & 2 deletions apps/next-js/app/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
const mockLoadIndex = vi.fn()
const mockQuery = vi.fn()

vi.mock('@inferedge/moss', () => ({
vi.mock('@moss-dev/moss-web', () => ({
MossClient: vi.fn().mockImplementation(() => ({
loadIndex: mockLoadIndex,
query: mockQuery,
Expand Down Expand Up @@ -32,7 +32,7 @@ describe('searchMoss', () => {
docs: [
{ id: '1', text: 'hello', score: 0.9, metadata: { title: 'Hello' } },
],
timeTakenInMs: 42,
timeTakenMs: 42,
})

const { searchMoss } = await import('./actions')
Expand Down
4 changes: 2 additions & 2 deletions apps/next-js/app/actions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use server'

import { MossClient } from "@inferedge/moss";
import { MossClient } from "@moss-dev/moss-web";

/**
* Server Action to perform semantic search using Moss SDK.
Expand Down Expand Up @@ -33,7 +33,7 @@ export async function searchMoss(query: string) {
score: doc.score,
metadata: doc.metadata
})),
timeTaken: results.timeTakenInMs
timeTaken: results.timeTakenMs
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
};
} catch (error) {
console.error("Moss Search Error:", error);
Expand Down
Loading
Loading