Maintain consistent and explicit naming conventions across your codebase that reflect: 1. **Component dependencies**: Class/function names should explicitly indicate their external dependencies and integrations to improve clarity and avoid confusion.
Maintain consistent and explicit naming conventions across your codebase that reflect:
// INCORRECT: Doesn't indicate dependency on Unstructured API
class DropboxLoader { ... }
// CORRECT: Explicitly indicates dependency
class DropboxUnstructuredLoader { ... }
// INCORRECT: Using deprecated parameter name
const model = new ChatOpenAI({
modelName: "gpt-azure",
});
// CORRECT: Using current parameter name
const model = new ChatOpenAI({
model: "gpt-azure",
});
// INCORRECT: Concatenated words without separation
process.env.GOOGLE_DRIVE_CREDENTIALSPATH
// CORRECT: Words properly separated with underscores
process.env.GOOGLE_DRIVE_CREDENTIALS_PATH
This consistent approach to naming makes your code more maintainable, reduces confusion for other developers, and provides better clarity about component dependencies and behavior.
Enter the URL of a public GitHub repository