-
Notifications
You must be signed in to change notification settings - Fork 2
docs: improve Weaviate knowledge guide #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,13 @@ REST Endpoint: https://larnd9rle1zwapsdcqw.c0.us-east1.gcp.weaviate.cloud | |||||||||||||
| gRPC Endpoint: https://grpc-larnd9rle1zwapsdcqw.c0.us-east1.gcp.weaviate.cloud | ||||||||||||||
| ReadOnly API Key: Z0lQNXFDVnFnRmV6OTZRdF9KRVUwVzFEdjgxaHIvVFB3dkFyV0JqSnFxWFJYMWhqM0FTQ0NncU14S2hrPV92MjAw | ||||||||||||||
| ``` | ||||||||||||||
| ## Required Environment Variables | ||||||||||||||
|
|
||||||||||||||
| | Variable | Required | Description | | ||||||||||||||
| |-----------|-----------|------------| | ||||||||||||||
| | WEAVIATE_URL | Yes | Weaviate cluster URL | | ||||||||||||||
| | WEAVIATE_API_KEY | Yes | Read-only API key for database access | | ||||||||||||||
| | OPENAI_APIKEY | Yes | OpenAI API key used for embeddings and generation | | ||||||||||||||
|
|
||||||||||||||
| ## 1. Database Connection | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -256,5 +263,40 @@ refined_response = content.generate.near_text( | |||||||||||||
| limit=10 | ||||||||||||||
| ) | ||||||||||||||
| ``` | ||||||||||||||
| ## Troubleshooting | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add blank line before heading. Markdown convention requires a blank line before headings. As per static analysis. 📝 Proposed fixTroubleshootingVerify each finding against current code. Fix only still-valid issues, skip the In |
||||||||||||||
|
|
||||||||||||||
| ### Authentication Errors | ||||||||||||||
|
|
||||||||||||||
| If connection attempts fail: | ||||||||||||||
|
|
||||||||||||||
| - Verify that `WEAVIATE_URL` is configured correctly. | ||||||||||||||
| - Verify that `WEAVIATE_API_KEY` is present in your environment. | ||||||||||||||
| - Verify that `OPENAI_APIKEY` is configured when using OpenAI-powered features. | ||||||||||||||
|
Comment on lines
+272
to
+274
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win Rephrase to avoid repetitive sentence structure. Three consecutive sentences begin with "Verify that", which degrades readability. Consider varying the structure. As per static analysis. 📝 Proposed fix-- Verify that `WEAVIATE_URL` is configured correctly.
-- Verify that `WEAVIATE_API_KEY` is present in your environment.
-- Verify that `OPENAI_APIKEY` is configured when using OpenAI-powered features.
+- Check that `WEAVIATE_URL` is configured correctly.
+- Ensure `WEAVIATE_API_KEY` is present in your environment.
+- Verify `OPENAI_APIKEY` is configured when using OpenAI-powered features.📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[style] ~274-~274: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE) 🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| ### Empty Search Results | ||||||||||||||
|
|
||||||||||||||
| If searches return no useful results: | ||||||||||||||
|
|
||||||||||||||
| - Try broader search queries. | ||||||||||||||
| - Increase the result limit. | ||||||||||||||
| - Test hybrid search instead of vector-only search. | ||||||||||||||
| - Verify that the target collection contains indexed data. | ||||||||||||||
| ### OpenAI Integration Errors | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add blank line before heading. Markdown convention requires a blank line before headings. As per static analysis. 📝 Proposed fix - Verify that the target collection contains indexed data.
+
### OpenAI Integration Errors📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 284-284: Headings should be surrounded by blank lines (MD022, blanks-around-headings) 🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| Common causes include: | ||||||||||||||
|
|
||||||||||||||
| - Invalid API credentials. | ||||||||||||||
| - OpenAI rate limits. | ||||||||||||||
| - Network connectivity issues. | ||||||||||||||
|
|
||||||||||||||
| Refer to OpenAI API logs for additional debugging information. | ||||||||||||||
|
|
||||||||||||||
| ### Slow Retrieval Performance | ||||||||||||||
|
|
||||||||||||||
| If retrieval is slower than expected: | ||||||||||||||
|
|
||||||||||||||
| - Reduce result limits. | ||||||||||||||
| - Apply filters before generation. | ||||||||||||||
| - Use retrieval and re-ranking patterns only when higher quality results are required. | ||||||||||||||
|
|
||||||||||||||
| Note: Always refer to [OpenAI's documentation](https://platform.openai.com/docs) and [Weaviate's documentation](https://weaviate.io/developers/weaviate) for the most up-to-date information. | ||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add blank line before heading.
Markdown convention requires a blank line before headings for proper parsing. As per static analysis.
📝 Proposed fix
Required Environment Variables
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
@Knowledge/README.mdaround lines 14 - 20, Add a single blank lineimmediately before the "## Required Environment Variables" heading in
Knowledge/README.md so the Markdown parser recognizes the heading correctly;
locate the heading text "## Required Environment Variables" and insert one empty
line above it.