You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add workspace configuration and implement vector search enhancements
- Introduced a new workspace configuration file for easier project management.
- Updated custom functions documentation to clarify database population steps.
- Added new SQL migration files for pgvector extension and embeddings table.
- Implemented `getDocGroupsForVectorSearch` function to streamline document group retrieval.
- Refactored `fetchContextsViaDrizzleVectorSearch` to utilize new embedding and document group fetching logic.
- Updated `updateDocGroupsInVectorStore` to use Drizzle for database updates instead of backend calls.
- Enhanced tests to cover new functionality and ensure proper integration.
* Replaces backend /embedAndMetadata for the embedding part.
4
+
* Uses same env and behavior as backend: EMBEDDING_MODEL, OPENAI_API_KEY/NCSA_HOSTED_API_KEY,
5
+
* EMBEDDING_API_BASE, optional QWEN_QUERY_INSTRUCTION for Qwen models.
6
+
*/
7
+
8
+
importOpenAIfrom'openai'
9
+
10
+
constDEFAULT_QWEN_QUERY_INSTRUCTION=
11
+
'Given a user search query, retrieve the most relevant passages from the Illinois Chat knowledge base stored in the vector store to answer the query accurately. Prioritize authoritative course materials, syllabi, FAQs, official documentation, web pages, and other relevant sources. Ignore boilerplate/navigation text.'
0 commit comments